<security-constraint>
<web-resource-collection>
<web-resource-name>GeneralRequests</web-resource-name>
<url-pattern>/WR1/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
在最近对IE6的测试中,我们发现“有时”页面会缓存,尽管我们还没有完全确定何时缓存。除了机密标志外,我们还曾经有:
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
response.setDateHeader("Expires", 1);
更新:
我们检查了一下,Tomcat正确发送了Pragma、Cache Control和Expires参数,所以这不是问题所在(好吧,没有发送字符串和最大年龄值,但仍然不是问题所在)。