各种语言禁止IE缓存中的方法
2007-11-05 20:58

对于各位语言禁止再IE缓存中的方法!记录一下,希望对路过的朋友也有用!

HTML:
<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">

ASP
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")

PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");

 
评论
发表评论

您还没有登录,请登录后发表评论

domando
搜索本博客
我的相册
797bea0d-6c51-329f-8ac5-ce3279c01ee0-thumb
database question
共 1 张
最近加入圈子
存档
最新评论