C#清除页面缓存
来源:互联网 发布:windows 扩展屏幕 编辑:程序博客网 时间:2024/05/17 03:03
public void SetPageNoCache()
{
Response.Buffer = true;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
}
(1) Response.Buffer = true;
Response.ExpiresAbsolute = System.DateTime.Now.AddSeconds(-1);
Response.Expires = 0;
Response.CacheControl = "no-cache";
Response.AddHeader("Pragma", "No-Cache");
(2) HTML页面
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
(3) 重新调用原页面的时候在给页面传一个参数: href="xxx.aspx?random()"
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/ajaxchen_615/archive/2009/08/11/4433507.aspx
- C#清除页面缓存
- C#清除页面缓存
- C#页面清除缓存
- 清除页面缓存
- 清除Tomcat页面缓存
- 清除页面缓存
- 清除jsp页面缓存
- .NET清除页面缓存
- 清除jsp页面缓存
- html页面清除缓存
- Java清除页面缓存
- jsp清除页面缓存
- 清除页面缓存
- jsp页面清除缓存
- jsp页面清除缓存
- JSP页面清除缓存
- 清除jsp页面缓存
- Html页面清除缓存
- 眼中的世界
- Create Cool Line Effects using Actionscript 3.0 in Flash CS4 or Flex Builder 3
- 如何实现dorado的datatable整列单选效果
- 转)DB2 未发出启动数据库管理器的命令的几个问题
- Hard to Believe, but True!
- C#清除页面缓存
- 怎样才能生活的愉快——学会与人沟通
- 中国电子商务10年嬗变路线图
- JSP 文件 下载 代码 (不使用 jsp smart upload 组件) 解决中文名 问题
- sqlserver 中文簡繁體保存時注意的問題,無法解析 equal to 動作的定序衝突,亂碼
- ASP.NET Session State Partitioning using State Server Load Balancing
- Oracle Certification Study Guides and Oracle Certification Sample Questions
- 格林斯潘
- 【转】在控制台程序中隐藏控制台窗口!