Open In App

ASP ExpiresAbsolute Property

Last Updated : 31 Jul, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

The ASP ExpiresAbsolute Property is used for setting the date and time at which a page cached on a browser expires. If the same page is returned by the user before that date and time, the cached version is displayed. 

Important Note: If time is not set, the page expires at midnight of that day. If a date is not set, the page expires at the given time on the day that the script runs.

Syntax:

response.ExpiresAbsolute[=[date][time]] 

Parameter Values: This Property contains two values as mentioned above and described below:

  • date: It specifies the date when the cache page is expired.
  • Time: It specifies the time at which the cache page is expired from the Browser.

Example: Below code illustrates that the page will be expired 2:00 pm on 23 March 2020.

HTML




// setting the date and time 
<% response.ExpiresAbsolute=#March 23,2020 14:00:00# %>



Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads