Chinaunix首页 | 论坛 | 博客
  • 博客访问: 846070
  • 博文数量: 221
  • 博客积分: 10033
  • 博客等级: 上将
  • 技术积分: 2325
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-06 22:00
文章分类

全部博文(221)

文章存档

2010年(8)

2009年(1)

2008年(69)

2007年(63)

2006年(80)

我的朋友

分类:

2008-08-14 12:09:35

<%
       // 将过期日期设置为一个过去时间

        response.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");

        // 设置 HTTP/1.1 no-cache 头
        response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");

        // 设置 IE 扩展 HTTP/1.1 no-cache headers, 用户自己添加
        response.addHeader("Cache-Control", "post-check=0, pre-check=0");

        // 设置标准 HTTP/1.0 no-cache header.
        response.setHeader("Pragma", "no-cache");
%>
阅读(825) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~