防止页面缓存的方法
2008-08-19 09:11
246 查看
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");
<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");
相关文章推荐
- 防止页面缓存的方法
- 在这防止页面缓存的方法里添加日志标题
- php防止页面缓存,实现网页过期的方法
- 防止页面url缓存中ajax中post请求的处理方法
- 转:Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法+真正防止html缓存的手技术
- 防止页面缓存的方法
- thinkphp 静态缓存页面的设置方法
- 清空HTML页面缓存方法
- 页面缓存, jsp 缓存, html 缓存, ajax缓存,解决方法
- struts2 笔记03 异常支持、防止页面刷新和后退、方法验证
- iframe中的页面缓存清不掉解决方法
- 使用Dojo实现页面不刷新提交数据时避免前台缓存的方法
- 页面缓存, jsp 缓存, html 缓存, ajax缓存,解决方法
- Asp.net使用异步缓存方法实现页面及时更新
- ASP.NET 缓存:方法和最佳实践 页面缓存技术(Cache、XML)
- php页面缓存实现方法总结
- 页面禁用缓存方法
- SHOP++页面缓存的配置方法
- 防止普通用户直接登录管理员页面的几种自动跳转方法
- [Web]防止用户复制页面内容和另存页面的方法