在HTML页面的<HEAD>标签内加入如下代码:
<HEAD>
<META HTTP-EQUIV="Expires" CONTENT="0">
<METAHTTP-EQUIV="Pragma" CONTENT="no-cache">
<METAHTTP-EQUIV="Cache-control" CONTENT="no-cache">
<META HTTP-EQUIV="Cache"CONTENT="no-cache">
</HEAD>
在JSP页面的最前面加入如下代码:
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
%>