1

I'm trying to port a really old and poorly written ASP page to ASP.NET and I came across this line in the "head":

<meta http-equiv="ExpiresAbsolute" content="0" />

Tried Google but nothing useful came up. What does "ExpiresAbsolute" do? I know "Expires" can be set to control caching etc. but the absolute part, I have never seen..

Anyone who can explain this or direct to information?

Falchion
  • 25
  • 7
  • Didn't google very hard. *"The `ExpiresAbsolute` property specifies the date and time at which a page cached on a browser expires. If the user returns to the same page before that date and time, the cached version is displayed. If a time is not specified, the page expires at midnight of that day. If a date is not specified, the page expires at the given time on the day that the script runs."* In the context of a `` tag is useless the actually true `` tag value is `expires`. – user692942 Mar 22 '16 at 12:54
  • Yes, I found the keyword, but only in it's `response.ExpiresAbsolute` form. It's when used in the http-equiv form I'm interested in. – Falchion Mar 22 '16 at 13:00
  • Like I already explained it doesn't have one that is a Classic ASP specific way of setting the `expires` HTTP header. – user692942 Mar 22 '16 at 13:02

1 Answers1

0

The ExpiresAbsolute is a property of the Response object in Classic ASP and in this context means nothing as there is no valid http-equiv of ExpiresAbsolute.

From MSDN - Response.ExpiresAbsolute
The ExpiresAbsolute property specifies the date and time at which a page cached on a browser expires. If the user returns to the same page before that date and time, the cached version is displayed. If a time is not specified, the page expires at midnight of that day. If a date is not specified, the page expires at the given time on the day that the script runs.

The actually correct http-equiv value of this for a <meta> tag in HTML is expires.

<meta http-equiv="expires" content="Tue, 01 Jan 1900 1:00:00 GMT">

Useful Links

Community
  • 1
  • 1
user692942
  • 16,398
  • 7
  • 76
  • 175
  • Thanks for the information, it was the use in the `` tag I needed to know. Then I guess it should be safe to remove as there is no support for the value... – Falchion Mar 22 '16 at 13:08
  • @Falchion It would appear as though it never worked if it's intention was to force the page to not cache then whoever wrote it failed. – user692942 Mar 22 '16 at 13:10