Static content gets downloaded even after expiry set to access + 1 month

If I access my web application with primed cached then am able to only see dynamic hits. But when I close my browser and access the same application again, static as well as dynamic hits are made to the server. I am wondering why the static requests were made to server and not served from browser cache. Any help would be appreciated.
Following is my Apache settings and am using IE 7, Firefox 3.6.5 for my tests.

Header unset ETag
Header unset Last-Modified
FileETag None

ExpiresActive ON
ExpiresByType text/javascript “access plus 1 month”
ExpiresByType application/x-javascript “access plus 1 month”
ExpiresByType application/javascript “access plus 1 month”
ExpiresByType text/css “access plus 1 month”
ExpiresByType image/gif “access plus 1 month”
ExpiresByType image/png “access plus 1 month”
ExpiresByType image/jpeg “access plus 1 month”

Can you run a test with the IE7 browser configuration and share the results? Looking at the actual http headers will help figure it out.

Thanks Patrick.

Please find the test results you asked for.


Just a guess at this point because I haven’t had a chance to poke around and do research but it might be because there is no Last-Modified header (even though there is an Expires).

Thanks Pattrick.

I tried enabling Last Modified date but, the browser again downloads the static content. For your reference I have executed one test
Any pointers would help.

Looking at how the page is loading, are you doing a meta reload or something to redirect?

It looks like loads, the browser loads the favicon (which is an indicator that it thinks it finished loading) and then it loads which 302 redirects to TCS iON - Cloud Based Solutions for Small and Medium Businesses

It looks a LOT like that initial page load is doing a meta reload to do the redirect (which forces the browser to re-download all of the resources). If you really mean to redirect - do a proper 301 redirect and directly to the destination page.

Thanks Patrick, Resolved one issue related httpd code 302 and also enabled last-modified date check. Now the static content does not get downloaded once the browser cache is primed.

Although yesterday we faced an issue. Our static content was changed from test.js?6.00.02 to test.js?6.00.03 but some users complaint that related functionality is not working. I am unsure what has gone wrong.

Got the issue.

From the application there was a call done to test.js and from some where else test.js?1.2.