当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP ExpiresAbsolute 属性
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(绝对过期时间)属性是用来给缓存的页面设置一个具体的过期日期和过期时间。如果用户在某个页面的过期之前返回这个页面,那么这个页面将直接通过缓存调用出来。
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. |
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#%> |