ASP Expires property
Expires property settings page is cached before the expiry time. If the user fails to return before the page is the same page, the cached version will be displayed.
grammar
response.Expires[=number]
参数 | 描述 |
---|---|
number | 页面过期前的时间(分钟) |
Examples
Example 1
The following code indicates that the page will not be cached:
<%response.Expires=-1%>
Example 2
The following code indicates that the page will expire in 1440 minutes (24 hours):
<%response.Expires=1440%>
Complete Response Object Reference