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

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP ExpiresAbsolute 属性


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

The ExpiresAbsolute property sets a date and time when a cached page on a browser will expire. If a user returns to the same page before this date/time, the cached version is displayed.
ExpiresAbsolute(绝对过期时间)属性是用来给缓存的页面设置一个具体的过期日期和过期时间。如果用户在某个页面的过期之前返回这个页面,那么这个页面将直接通过缓存调用出来。

Syntax
语法

response.ExpiresAbsolute[=[date][time]]

Parameter
参数
Description
描述
date Specifies the date on which the page will expire.
设置页面过期的日期

If this parameter is not specified, the page will expire at the specified time on the day that the script is run.
如果该参数未被设定,那么页面将在脚本运行的那个时刻时过期

time Specifies the time at which the page will expire.
设定页面过期的具体时刻

If this parameter is not specified, the page will expire at midnight of the specified day.
如果这个参数没有被设定,那么默认的过期时刻为过期日期当天的凌晨零点

Examples
举例

The following code indicates that the page will expire at 4:00 PM on October 11, 2003:

<%response.ExpiresAbsolute=#October 11,2003 16:00:00#%>


评论 (0) All

登陆 | 还没注册?