我在jsp页中加了以下的代码, 可每次通过代理访问网页的时候,打开的总是代理缓存过的页面,在网上都说加了下面的代码就可以禁止代理服务器缓存的? 可实际不太管用,谁那里有此问题的答案?
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="Cache-Control" CONTENT="Private">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="Expires" CONTENT="0">
<%
response.setHeader("Pragma", "No-cache, must-revalidate");
response.setHeader("Cache-Control", "Private");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
%>
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="Cache-Control" CONTENT="Private">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-store">
<META HTTP-EQUIV="Expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="Expires" CONTENT="0">
<%
response.setHeader("Pragma", "No-cache, must-revalidate");
response.setHeader("Cache-Control", "Private");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
%>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货