|

楼主 |
发表于 2010-6-27 17:25:07
|
显示全部楼层
在网上查到如下,但是不知道怎么做
Client-side caching is to be done with appropriate response headers. To entirely disable client-side caching on the particular resources, you need to create a Filter which listens on the desired url-pattern and has at least the following lines inside the doFilter() method:
response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); // HTTP 1.1.
response.setHeader(" ragma", "no-cache"); // HTTP 1.0.
response.setDateHeader("Expires", 0); // Proxies.
The response is here by the way the HttpServletResponse which is been casted back from the 2nd ServletResponse argument of the doFilter() method.
求高手指导,对tomcat底层的东西不懂………… |
|