Tutorials References Exercises Videos Menu
Create Website Get Certified Upgrade

ASP ExpiresAbsolute Property


❮ Complete Response Object Reference

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.


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, 2012:

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

❮ Complete Response Object Reference