ie禁止快取的程式碼

dingonet發表於2008-05-08
禁止ie的快取的程式碼[@more@]

HTML:



ASP
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")

PHP
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

JSP:
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/77544/viewspace-1003601/,如需轉載,請註明出處,否則將追究法律責任。

相關文章