Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法
来源:互联网 发布:苹果桌面软件 编辑:程序博客网 时间:2024/06/05 02:30
Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法
HTTP:
<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">
<META HTTP-EQUIV="expires" CONTENT="0">
ASP
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")
PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
<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">
<META HTTP-EQUIV="expires" CONTENT="0">
ASP
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")
PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
- Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法
- 转:Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法+真正防止html缓存的手技术
- html禁止缓存的方法,asp禁止缓存的方法,php禁止缓存的方法,jsp禁止缓存的方法
- html禁止缓存的方法,asp禁止缓存的方法,php禁止缓存的方法,jsp禁止缓存的方法
- .Html+Asp+asp.net(C#)禁止浏览器缓存页面的方法-禁止缓存
- asp,php,jsp,html禁止缓存的方法
- html、asp、php、jsp 禁止缓存的方法
- 有时候需要禁止缓存,实时获得最新数据,html、PHP、asp、jsp禁止缓存的方法
- html jsp 禁止浏览器缓存页面
- ASP/PHP/JSP等禁止ajax缓存的方法
- php禁止浏览器使用缓存页面
- htm,asp,php 禁止页面缓存
- 禁止页面缓存的几种方法
- jsp 禁止浏览器缓存
- jsp 禁止浏览器缓存
- 禁止页面缓存的方法
- 禁止页面缓存的方法
- jsp禁止页面缓存
- bat 脚本基本语法
- 计算Java日期--学习怎样创建和使用日期(2)
- 计算Java日期--学习怎样创建和使用日期(1)
- 40个网页常用小技巧
- 开始写Blog了
- Html+Asp+Php+Jsp:4种语言禁止浏览器缓存页面的方法
- css入门
- GET 与 POST 方法 的区别
- Java虚拟机
- 失去的10年与人民币的升值
- 数字魔鬼
- SQL Server 2005 Distilled (Microsoft Windows Server System Series) by Eric L. Brown
- The C++ Programming Language
- 使用J2SE API读取Properties文件的六种方法