防止页面缓存的方法
2007-05-23 23:13
260 查看
htm网页
<metahttp-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control"content="no-cache,must-revalidate">
<metahttp-equiv="expires"content="wed,26feb199708:21:57gmt">
或者<metahttp-equiv="expires"content="0">
asp网页
response.expires=-1
response.expiresabsolute=now()-1
response.cachecontrol="no-cache"
php网页
header("expires:mon,26jul199705:00:00gmt");
header("cache-control:no-cache,must-revalidate");
header("pragma:no-cache");
jsp网页
response.addHeader("Pragma", "No-cache");
response.addHeader("Cache-Control", "No-cache, Must-revalidate");
response.addHeader("Expires", "0");
<metahttp-equiv="pragma"content="no-cache">
<metahttp-equiv="cache-control"content="no-cache,must-revalidate">
<metahttp-equiv="expires"content="wed,26feb199708:21:57gmt">
或者<metahttp-equiv="expires"content="0">
asp网页
response.expires=-1
response.expiresabsolute=now()-1
response.cachecontrol="no-cache"
php网页
header("expires:mon,26jul199705:00:00gmt");
header("cache-control:no-cache,must-revalidate");
header("pragma:no-cache");
jsp网页
response.addHeader("Pragma", "No-cache");
response.addHeader("Cache-Control", "No-cache, Must-revalidate");
response.addHeader("Expires", "0");
相关文章推荐
- 防止页面缓存的方法
- 防止页面缓存的方法
- 在这防止页面缓存的方法里添加日志标题
- php防止页面缓存,实现网页过期的方法
- 防止页面url缓存中ajax中post请求的处理方法
- 转:Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法+真正防止html缓存的手技术
- 使用Dojo实现页面不刷新提交数据时避免前台缓存的方法
- iframe中的页面缓存清不掉解决方法
- thinkphp 静态缓存页面的设置方法
- 页面缓存, jsp 缓存, html 缓存, ajax缓存,解决方法
- 清空HTML页面缓存方法
- 页面缓存, jsp 缓存, html 缓存, ajax缓存,解决方法
- struts2 笔记03 异常支持、防止页面刷新和后退、方法验证
- AJAX防止页面缓存
- 防止普通用户直接登录管理员页面的几种自动跳转方法
- 关于页面缓存清除的方法小结(整理)
- 使用Filter防止浏览器缓存页面或请求结果
- [Web]防止用户复制页面内容和另存页面的方法
- Asp.net使用异步缓存方法实现页面及时更新
- php页面缓存实现方法总结