日期:2014-05-17  浏览次数:20870 次

为什么火狐和谷歌浏览器下无法设置网页过期?
VBScript code
<%
Response.Buffer = True
Response.ExpiresAbsolute = Now() - 1
Response.Expires = -1
Response.CacheControl = "no-cache"
%>


为什么在IE下可以,在火狐下,谷歌下, 这段使网页过期的代码 无效。

后退之后,浏览器还是能显示历史页面。

------解决方案--------------------
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 14 Nov 1981 00:00:00 GMT">

加上这个在看看