设置页面不缓存 no-cache

html中设置方法
<head>
<META   HTTP-EQUIV="Pragma"   CONTENT="no-cache">      
<META   HTTP-EQUIV="Cache-Control"   CONTENT="no-cache">      
<META   HTTP-EQUIV="Expires"   CONTENT="0">
</head>

jsp中设置方法

1.  response.setHeader("Pragma","no-cache");      
2.  response.setHeader("Cache-Control","no-cache");      
3.  response.setDateHeader("Expires",0);   

 

posted on 2014-08-19 08:56  锟斤拷锟斤拷  阅读(281)  评论(0编辑  收藏  举报

导航