Unexpected Caching of AJAX results in IE8

前端 未结 10 2231
走了就别回头了
走了就别回头了 2020-11-28 01:59

I\'m having a serious issue with Internet Explorer caching results from a JQuery Ajax request.

I have header on my web page that gets updated every time a user navig

10条回答
  •  心在旅途
    2020-11-28 02:41

    If you are using ASP.NET MVC, it is enough to add this line on top of the controller action:

    [OutputCache(NoStore=true, Duration = 0, VaryByParam = "None")]
    public ActionResult getSomething()
    {
    
    }
    

提交回复
热议问题