Unexpected Caching of AJAX results in IE8

前端 未结 10 2160
走了就别回头了
走了就别回头了 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:29

    If you are calling ashx page you can also disable caching on the server with the following code:

    context.Response.Cache.SetCacheability(HttpCacheability.NoCache);
    context.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches); 
    

提交回复
热议问题