各种环境下清除缓存的方法。
2013-09-09 13:48
309 查看
HTML: <META HTTP-EQUIV="pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Cache-Control" CONTENT="no-store, must-revalidate"> <META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT"> <META HTTP-EQUIV="expires" CONTENT="0"> ASP: response.expires=0 response.addHeader("pragma","no-cache") response.addHeader("Cache-Control","no-store, must-revalidate") PHP: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, must-revalidate"); header("Pragma: no-cache"); JSP: response.addHeader("Cache-Control", "no-store, must-revalidate"); response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
相关文章推荐
- IOS中获取各种文件的目录路径的方法,清除沙盒缓存时,如何显示设备的总容量和可用容量
- 各种浏览器清除缓存的方法。
- js清除浏览器缓存的几种方法
- 清除浏览器缓存js文件的几种方法
- win7系统修复本地连接提示“windows无法完成修复问题,需要清除DNS缓存”的解决方法
- 清除win7电脑中本地的DNS缓存的方法
- $.getJson方法清除缓存
- iOS中设置清除缓存功能的实现方法
- 各种桌面环境下设置开机自启动应用程序的方法
- C语言清除输入缓存方法记录[转]
- linux下清除Squid缓存的方法记录
- 清除页面缓存的方法总结
- iOS中 SDWebImage手动清除缓存的方法 技术分享
- 清除js缓存的多种方法总结
- JSP清除页面缓存常用方法小结
- js清除浏览器缓存的几种方法
- 各种系统更新dns缓存方法
- 清除迅雷看看缓存的简单而快速的方法
- JS清除IE浏览器缓存的方法
- C#实现清除IE浏览器缓存的方法