作者:后果搞活棵_654_962 | 来源:互联网 | 2018-03-20 14:27
清除缓存我们只需要设置页面为no-cache就可以了,当然像asp,php这种只需要设置Expires操作即可,具体如下.HTML网页:METAHTTP-EQUIVquo...
清除缓存我们只需要设置页面为no-cache就可以了,当然像asp,php这种只需要设置Expires操作即可,具体如下.
HTML网页:
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);