如何禁止页面缓存

禁止页面使用缓存~
------------------------------------------------
jsp:页面no cache:

response.setHeader("Pragma","No-cache");
response.setHeader("Cache-Control","no-cache");
response.setDateHeader("Expires", 0);

html:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT=0>

你可能感兴趣的:(html,jsp,cache)