So frustrating. :P
Really would like these to be cached on users' browsers but it's setting this.
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
How do I stop this?
I've tried looking in our settings for anything relating to caching. All default values are used which according to the documentation, that means it's allowed. Are static files like JS and CSS different?
Edit: I've noticed that some JS files are being allowed to cache as Chrome is saying they were "retrieved from cache". No CSS files are however.
Or you can have a servlet set the cache expiration and last modified headers on the response.
I'd also recommend GZIP compressing JavaScript and CSS. Tomcat ships with a compression filter in its /examples directory that you can wire in for appropriate URLs.
You should combine and minify your JavaScript and CSS for better performance.
All these are recommendations from the YSlow plug-in for Firefox. You can see how effective these measures are using the Firebug plug-in.