Chinaunix
标题:
html asp php java 清除缓存
[打印本页]
作者:
xrsf
时间:
2007-08-20 01:49
标题:
html asp php java 清除缓存
HTM网页
或者
ASP网页
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"
PHP网页
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
JSP网页
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);
本文来自ChinaUnix博客,如果查看原文请点:
http://blog.chinaunix.net/u/12228/showart_363550.html
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2