当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Expires 属性
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(过期属性)是给缓存的页面设置过期时间的。如果用户在某个页面的过期时间前返回这个页面,那么它将直接从缓存中调用出来。
response.Expires[=number] |
Parameter 参数 | Description 描述 |
---|---|
number | The time in minutes before the page expires 设置页面在多少时间内过期(单位:分钟) |
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%> |