当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Expires 属性

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP Expires 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 352 ::
收藏到网摘: n/a

The Expires property sets how long (in minutes) a page will be cached on a browser before it expires. If a user returns to the same page before it expires, the cached version is displayed.
Expires(过期属性)是给缓存的页面设置过期时间的。如果用户在某个页面的过期时间前返回这个页面,那么它将直接从缓存中调用出来。

Syntax
语法

response.Expires[=number]

Parameter
参数
Description
描述
number The time in minutes before the page expires
设置页面在多少时间内过期(单位:分钟)

Examples
举例

Example 1

The following code indicates that the page will never be cached:

<%response.Expires=-1%>

Example 2

The following code indicates that the page will expire after 1440 minutes (24 hours):

<%response.Expires=1440%>

评论 (0) All

登陆 | 还没注册?