I am developing a web application and I've set up my JavaScript and CSS files to have far future expires. I send back to the client that each file was last modified a year ago and that each file expires in a year. The problem is that Firefox and Chromium seem to ignore the response headers and refetch the static files every single time the page is reloaded.
Opera, on the other hand is operating as expected. That is to say, it caches the files with the far future expires.
I am using Ubuntu 10.04, Firefox 3.6.8 and Chromium 5.0.375.125. Are Firefox and Chromium configured to not cache files from localhost by default? Is there a way to change this setting? Anybody have ideas on what else might be causing them to not cache?
These are the response headers that I send back to the client:
Server Development/1.0
Date Tue, 31 Aug 2010 15:44:16 GMT
Content-Language en
Expires Wed, 31 Aug 2011 15:44:16 GMT
Vary Accept-Language, Cookie
Last-Modified Mon, 31 Aug 2009 15:44:16 GMT
Cache-Control max-age=31536000
Content-Type text/css
Content-Length 32493
Thanks!