怪事来了。怎么无法设置网页过期?
我的目的是要让网页过期, 而不是不要过期。
从a页面进入b页面,然后点击浏览器后退页面,返回到a页面。
我希望此时 页面显示过期了。
我分别用html和asp两种页面测试,都没用啊。怪事。为什么? 怎么弄?
【html测试】
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>测试</title> <meta http-equiv="Expires" CONTENT="0"> <meta http-equiv="Cache-Control" CONTENT="no-cache"> <meta http-equiv="Pragma" CONTENT="no-cache"> </head><body><a href="b.html">进入b</a></body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>测试2</title></head><body>bbbbbbb........</body></html>
<%Response.Buffer = TrueResponse.ExpiresAbsolute = Now() - 1Response.Expires = 0Response.CacheControl = "no-cache"response.write "a页面"%>
<%response.write "b页面"%>