Skip to content
Related Articles

Related Articles

ASP ExpiresAbsolute Property
  • Last Updated : 31 Jul, 2020

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

filter_none

edit
close

play_arrow

link
brightness_4
code

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

chevron_right


My Personal Notes arrow_drop_up
Recommended Articles
Page :