浏览器系列:清除Web页面清缓存
2012-02-21 10:02
239 查看
添加html 头:
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
相关文章推荐
- System.Web.UI.Page.Cache 页面 缓存 清除
- JS浏览器不缓存页面的几种方法--清除浏览器缓存
- java web filter实现浏览器不缓存页面
- java web filter实现浏览器不缓存页面
- 遇到问题-----web-----uploadify上传工具的坑----清除浏览器缓存后初始化失败不报错--uploadify初始化失效
- 【Web缓存机制系列】2 – Web浏览器的缓存机制-(新鲜度 校验值)
- Spring Web MVC中的页面缓存支持 ——跟我学SpringMVC系列
- JavaWeb禁止浏览器缓存当前Web页面的方法
- 强制浏览器不再缓存Web页面
- Spring Web MVC中的页面缓存支持 ——跟我学SpringMVC系列
- JSP用户安全退出【清除浏览器缓存中页面】
- WebView打开网页,设置支持Javascript,浏览的网页后退而不是退出浏览器,判断页面加载过程,缓存的使用
- javaweb之response随机生成图片验证码加载到web页面中(本实例使用了禁止浏览器缓存头),并且单击使用javascript换图片
- 清空微信浏览器缓存debug页面清除法
- Web开发兼容性系列文章(一):不同设备浏览器的userAgent值大全
- 解决·web项目在浏览器页面上乱码
- 【Web缓存机制系列】
- WebView加载带cookie的页面 下欠进入时cookie仍然再。清除cookie
- 用ajax清除浏览器缓存的js、css、图片等
- WEB缓存系列之WEB缓存的作用与类型