禁止浏览器缓存页面,对html页面和jsp最好都加一些设置对于HTM网页,加入:
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0"> 然后,jsp页面中加入:
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragrma","no-cache");
response.setDateHeader("Expires",0);
%>
html jsp 禁止浏览器缓存页面
最新推荐文章于 2020-11-26 10:40:10 发布