Unexpected Caching of AJAX results in IE8

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

    this is what i do for ajax calls:

    var url = "/mypage.aspx";
    // my other vars i want to add go here
    url = url + "&sid=" + Math.random();
    // make ajax call
    

    it works pretty well for me.

提交回复
热议问题