ASP Expires Attribute

response Object Reference Manual

The Expires attribute sets the caching time for the page before it expires. If the user returns to the same page before the page expires, the cached version will be displayed.

Syntax:

response.Expires[=number]
Parameter Description
number Time before page expiration (minutes)

Instance

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 after 1660 minutes:

<%response.Expires=1660%>

response Object Reference Manual