禁止页面缓存的方法
1, 在jsp或者servlet中加入
<%
response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);
%>
2, 在页面中使用HTML标记,如下面: <HEAD> <META http-equiv=Pragma content=no-cache> <META http-equiv=Cache-Control content=no-cache> <META http-equiv=Expires content=0>
3,<%@ OutputCache duration="1" Location="none" %><%@ OutputCache duration="1" Location="none" %><%@ OutputCache duration="1" Location="none" %> <%@ OutputCache duration="1" Location="none" %>

浙公网安备 33010602011771号