HTML配置no-cache(备忘)
HTML配置no-cache(备忘)http://blog.csdn.net/anialy/article/details/38751555
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- HTTP 1.1 -->
<meta http-equiv="pragma" content="no-cache">
<!-- HTTP 1.0 -->
<meta http-equiv="cache-control" content="no-cache">
<!-- Prevent caching at the proxy server -->
<meta http-equiv="expires" content="0">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
作者:SNSGOU 发布于:2012-09-20 17:57:39 分类:HTML/CSS 浏览(1871)
在页面中写入:
两种写法:
1,
<META HTTP-EQUIV="nocache" CONTENT="no-cache">
2,
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
</head>
JSP中去掉绶存:
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
浙公网安备 33010602011771号