ExpiresAbsolute 的作用是什么?
What's the function of ExpiresAbsolute?
我正在尝试将一个非常古老且写得不好的 ASP 页面移植到 ASP.NET,我在 "head":
中遇到了这一行
<meta http-equiv="ExpiresAbsolute" content="0" />
已尝试 Google 但没有任何有用的结果。
"ExpiresAbsolute" 是做什么的?我知道可以设置"Expires"来控制缓存等,但是绝对的部分,我没见过..
谁能解释一下或直接提供信息?
ExpiresAbsolute
是经典 ASP 中 Response
对象的 属性,在此上下文中没有任何意义,因为没有有效的 http-equiv
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.
HTML 中的 <meta>
标签的实际正确 http-equiv
值是 expires
。
<meta http-equiv="expires" content="Tue, 01 Jan 1900 1:00:00 GMT">
有用的链接
- Using tags to turn off caching in all browsers?
我正在尝试将一个非常古老且写得不好的 ASP 页面移植到 ASP.NET,我在 "head":
中遇到了这一行<meta http-equiv="ExpiresAbsolute" content="0" />
已尝试 Google 但没有任何有用的结果。 "ExpiresAbsolute" 是做什么的?我知道可以设置"Expires"来控制缓存等,但是绝对的部分,我没见过..
谁能解释一下或直接提供信息?
ExpiresAbsolute
是经典 ASP 中 Response
对象的 属性,在此上下文中没有任何意义,因为没有有效的 http-equiv
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.
HTML 中的 <meta>
标签的实际正确 http-equiv
值是 expires
。
<meta http-equiv="expires" content="Tue, 01 Jan 1900 1:00:00 GMT">
有用的链接
- Using tags to turn off caching in all browsers?