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请求,先请求缓存,没有才请求服务

相关文章:

  • 2021-11-30
  • 2021-09-29
  • 2022-01-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2022-01-05
  • 2022-01-17
  • 2021-10-17
  • 2021-11-17
相关资源
相似解决方案