BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / www-technology / #9542同步于 2010/2/2
WWWTechnology机器人发帖

[转]防止IE对动态页面进行缓存的方法

DestinyOwner
2010/2/2镜像同步0 回复
关于IE缓存的解决方案(HTML,JSP,ASP,PHP,C#) 上一篇 / 下一篇 2008-03-21 17:46:00 / 个人分类:PHP技术 查看( 315 ) / 评论( 0 ) / 评分( 0 / 0 ) 禁止服务器端缓存: Response.Expires = 0 或<meta http-equiv="Expires" CONTENT="0"> 禁用客户端缓存。 HTML网页 <META HTTP-EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Contro l" 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.cache control = "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.AddSecond s(-1); Response.Expires=0; Response.CacheControl="no-cache"; 本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/zj05409/archive/2010/02/03/5283357.aspx
订阅后,新回复会通过你的通知中心匿名送达。
0 条回复
暂无回复 · 你可以订阅本帖等待新回复。