当前位置: 代码迷 >> Web前端 >> 设立页面不缓存
  详细解决方案

设立页面不缓存

热度:144   发布时间:2012-10-28 09:54:44.0
设置页面不缓存
htm网页
<metahttp-equiv="pragma"content="no-cache"> 

<metahttp-equiv="cache-control"content="no-cache,must-revalidate"> 

<metahttp-equiv="expires"content="0"> 



jsp网页
response.addHeader("pragma", "no-cache"); 

response.addHeader("cache-control", "no-cache,must-revalidate"); 

response.addHeader("expires", "0"); 

  相关解决方案