0
点赞
收藏
分享

微信扫一扫

Html/Jsp缓存


<META   HTTP-EQUIV="pragma"   CONTENT="no-cache">      
  <META   HTTP-EQUIV="Cache-Control"   CONTENT="no-cache,   must-revalidate">      
 <META   HTTP-EQUIV="expires"   CONTENT="Wed,   26   Feb   1997   08:21:57   GMT">      
 或者<META   HTTP-EQUIV="expires"   CONTENT="0">




<%        
  response.setHeader("Cache-Control","no-store");        
  response.setHeader("Pragrma","no-cache");        
  response.setDateHeader("Expires",0);        
  %>




转载自: [url]http://wjt276.iteye.com/blog/454930[/url]



另外,可以通过过滤器来实现:


举报

相关推荐

0 条评论