码迷,mamicode.com
首页 > 其他好文 > 详细

禁止浏览器缓存

时间:2014-09-27 16:01:40      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:blog   http   ar   sp   div   on   c   log   html   

HTML: 
<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> 
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> 
<META HTTP-EQUIV="expires" CONTENT="0"> 
ASP 
response.expires=0 
response.addHeader("pragma","no-cache") 
response.addHeader("Cache-Control","no-store, must-revalidate") 
PHP 
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); 
header("Cache-Control: no-store, must-revalidate"); 
header("Pragma: no-cache"); 
JSP: 
response.addHeader("Cache-Control", "no-store, must-revalidate"); 
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");

  文章转载自:http://bbs.it-home.org/thread-16775-1-1.html

 

禁止浏览器缓存

标签:blog   http   ar   sp   div   on   c   log   html   

原文地址:http://www.cnblogs.com/baker668/p/3996371.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!