I created a Servlet filter with the following code in doFilter:
HttpServletResponse httpResponse = (HttpServletResponse)response;
httpResponse.setHeader(\"C
We also use the Last-Modified header to encourage the browser to always get a new version.
setDateHeader("Last-Modified", (new Date()).getTime() ); // Set last modified to right now.
I'm not sure about keeping the browser's back button from using the cache, though. Anything that you do with header fields is only going to be evaluated when the page is first loaded, IIRC.