1.加入如下頭描述
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
2.在action,做如下聲明
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
3.隨機參數
var randf = parseInt(Math.random()*1000);
window.location.href='ajax_user_center_mydownload.aspx'+'?'+randf;
瀏覽器遇到相同的url請求,先請求緩存,沒有才請求服務