禁用客户端缓存
来源:互联网 发布:scratch 1.4 for mac 编辑:程序博客网 时间:2024/04/26 03:13
禁用客户端缓存
HTM网页
<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">
ASP网页
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
PHP网页
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
C#中禁止cache的方法!
Response.Buffer=true;
Response.ExpiresAbsolute=System.DateTime.Now.AddSeconds(-1);
Response.Expires=0;
Response.CacheControl="no-cache";
HTM网页
<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">
ASP网页
<%
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
%>
PHP网页
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP
response.setHeader("Pragma","No-Cache");
response.setHeader("Cache-Control","No-Cache");
response.setDateHeader("Expires", 0);
C#中禁止cache的方法!
Response.Buffer=true;
Response.ExpiresAbsolute=System.DateTime.Now.AddSeconds(-1);
Response.Expires=0;
Response.CacheControl="no-cache";
- 禁用客户端缓存
- 禁用客户端缓存
- PHP禁用客户端缓存
- 禁用客户端缓存
- 禁用客户端缓存
- 禁用客户端缓存
- Code48禁用客户端缓存
- asp.net 禁用客户端缓存
- asp.net 禁用客户端缓存
- 禁用 aspx页面的客户端缓存
- 禁用 aspx页面的客户端缓存
- 禁用windows DNS客户端缓存
- Nginx禁用缓存、禁止客户端保存文件
- 启用缓存,禁用缓存
- 如何在 Windows XP 和 Windows Server 2003 中禁用客户端 DNS 缓存
- 如何在 Windows XP 和 Windows Server 2003 中禁用客户端 DNS 缓存
- php 禁用缓存
- 页面禁用缓存~!
- .net C# listbox的全选,反选和全不选,WinForm
- JS错误代码解释大全
- AT91RM9200的USB挂载过程
- Windows系统的消息机制
- JS代码收藏大全
- 禁用客户端缓存
- ORACLE DBA与普通用户的区别
- 编写需求FAQ(3)——需求分析的原子操作综述
- 对JFileChooser操作的一点心得
- ThreadLocal的介绍(利用变量副本实现多线程访问同一变量)
- PFC的数据类型及命名规则
- Gmail MSN 手机版比较
- vb.net类型转换函数
- 练习Allocator类