HTML页面去缓存

在页面中写入:

两种写法:

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);
%>
posted @ 2016-07-11 14:14  52php  阅读(864)  评论(0编辑  收藏  举报