response.expires = 0
或<meta http-equiv="expires" content="0">
禁用客户端缓存
htm网页
<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">
asp网页
<%
response.expires = -1
response.expiresabsolute = now() - 1
response.cachecontrol = "no-cache"
%>
php网页
header("expires: mon, 26 jul 1997 05:00:00 gmt");
header("cache-control: no-cache, must-revalidate");
header("pragma: no-cache");
jsp
response.setheader("pragma","no-cache");
response.setheader("cache-control","no-cache");
response.setdateheader("expires", 0);
c#中禁止cache的方法!
response.buffer=true;
response.expiresabsolute=system.datetime.now.addseconds(-1);
response.expires=0;
response.cachecontrol="no-cache";
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!


