IE缓存的问题??? try it:Page_Load(object sender,EventArgs e){ Response.Expires=0;} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://expert.csdn.net/Expert/TopicView1.asp?id=2281835与你的问题类似 如何关闭iis服务器缓存?作者:ec 更新日期:2003-9-6 12:13:07 浏览人次:63 专题地址:http://access911.net/index.asp?board=4&recordid=78FAB01E10DC 问题: 如何关闭iis服务器缓存? 回答: 在每页的最前面加入如下代码:Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" 禁止服务器端缓存: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"; ms-help://MS.VSCC/MS.MSDNVS.2052/cpref/html/frlrfsystemwebhttpcachepolicyclasstopic.htm看看帮助吧 文件夹的命名 按钮倒计时怎么做的,各位指点下。 gridview中取出时间的格式比对问题,请帮忙解答,谢! GridView问题 关于获取上一个页面中的id值的问题 东西靠右 如何屏蔽回车键,防止按回车键后提交数据? 象CSDN左边的树型菜单控件哪里有下载? 输入字符串的格式不正确? asp.net与sql连接时报错 SharePoint中的WebPart功能该怎么做? 有研究价值的问题:为何在HTML页面中通过的测试的文件在ASPX中无法通过??
专题地址:http://access911.net/index.asp?board=4&recordid=78FAB01E10DC
问题: 如何关闭iis服务器缓存?
回答: 在每页的最前面加入如下代码:Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = 0
Response.CacheControl = "no-cache" 禁止服务器端缓存:
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";
看看帮助吧