html的expires

来源:互联网 发布:双肩皮包知乎 编辑:程序博客网 时间:2024/04/28 10:37
expires 属性值 -- 网页缓存过期时间
  • expires用于网页缓存过期时间
  • expires出现在http-equiv属性中,使用content属性表示页面缓存的过期时间
  • 引用网址:http://www.dreamdu.com/xhtml/expires/

expires用于设定网页的过期时间,一旦过期就必须从服务器上重新加载.时间必须使用GMT格式.

expires示例

<meta http-equiv="expires" content="Sunday 26 October 2008 01:00 GMT" />
上一页 / 下一页 / 教程列表

以上来自http://www.dreamdu.com/xhtml/expires/

myeclipse自动生成的jsp包含这一句

<meta http-equiv="expires" content="0">

 0 是设置缓存的页过期之前的分钟数。若用户在页过期之前返回该页那么就显示缓存的版本。

原创粉丝点击