现在的位置: 首页 > 综合 > 正文

html的expires

2013年11月21日 ⁄ 综合 ⁄ 共 404字 ⁄ 字号 评论关闭
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" />
myeclipse自动生成的jsp包含这一句
<meta http-equiv="expires" content="0">

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

抱歉!评论已关闭.