转自:http://hi.baidu.com/xinzuihai/blog/item/93fcad23338c574ead34deec.html
http://blog.youkuaiyun.com/seng3018/article/details/5889894
禁止页面内容缓存: 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"; 禁止图片缓存: 在图片后面加一个随机参数,如: <img src=”images/bg.gif?temp_id=156404/> http://hi.baidu.com/edwin5200/blog/item/8173d8c2d1167c1d0ef47792.html http://www.cnblogs.com/zengwei/archive/2009/03/18/1415420.html <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> http://bbs.blueidea.com/thread-2621740-1-1.html <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <!-- 禁止浏览器缓存页面 --> —————————————————————————————————————————— 如何禁止IE缓存,采用Ajax技术数据更新不及时今日在做Ajax的项目,发现一个问题:提交数据后,取不回提交的数据。郁闷多时,仔细分析,发现后台日志没有取数据的消息,前端也没有出现“正在读入数据”的提示。因此觉得应该是系统缓存的问题,遂google,解决。方法如下: |