IEキャッシュ問題の解決方法

825 ワード

1: AJAX               

 javascript   URL   t=Math.random(), 

href = URL+"&"+"t="+Math.random();

  href = URL + "&" + "t="+ new Date().getTime();



2: XMLHttpRequest        XMLHttpRequest.setRequestHeader("If-Modified-Since","0");

 

xhr.setRequestHeader("If-Modified-Since","0");

xhr.send();



3.        Response.setHeader("Cache-Control", "no-cache, must-revalidate");



4.    jQuery      ,    cache false