Internet Explorer Caching asp.netmvc ajax results

前端 未结 7 892
故里飘歌
故里飘歌 2020-12-16 13:09

I\'m having an issue with a page in internet explorer. I have an ajax call that calls a form, in other browser, when I click the link it passes in the controller and load co

7条回答
  •  心在旅途
    2020-12-16 13:27

    If you are using the Ajax Helper, you can set the AllowCache parameter to false like this:

    @Ajax.ActionLink("AjaxCall", "AjaxMethod", "DeconflictedFiles",
                     new { }, 
                     new AjaxOptions
                     {
                         AllowCache = false,
                     }) 
    

    And IE won't cache the results of the call.

提交回复
热议问题