Current time: 12-06-2019, 03:59 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Static content gets downloaded even after expiry set to access + 1 month
07-28-2011, 11:32 PM
Post: #1
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"
Find all posts by this user
Quote this message in a reply
07-30-2011, 01:33 AM
Post: #2
RE: Static content gets downloaded even after expiry set to access + 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.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-30-2011, 07:46 PM (This post was last modified: 07-30-2011 07:50 PM by sachy78.)
Post: #3
RE: Static content gets downloaded even after expiry set to access + 1 month
Thanks Patrick.

Please find the test results you asked for.
http://www.webpagetest.org/result/110730_P6_16CJ3/

Thanks,
Sachin.
Find all posts by this user
Quote this message in a reply
07-31-2011, 12:04 AM
Post: #4
RE: Static content gets downloaded even after expiry set to access + 1 month
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).
Visit this user's website Find all posts by this user
Quote this message in a reply
08-03-2011, 07:15 PM
Post: #5
RE: Static content gets downloaded even after expiry set to access + 1 month
Thanks Pattrick.

I tried enabling Last Modified date but, the browser again downloads the static content. For your reference I have executed one test
URL - http://www.webpagetest.org/result/110803...1/details/
Any pointers would help.
Find all posts by this user
Quote this message in a reply
08-04-2011, 01:52 AM
Post: #6
RE: Static content gets downloaded even after expiry set to access + 1 month
Looking at how the page is loading, are you doing a meta reload or something to redirect?

It looks like http://tcsion.com/ loads, the browser loads the favicon (which is an indicator that it thinks it finished loading) and then it loads http://tcsion.com/dotcom/TCSSMB which 302 redirects to http://tcsion.com/dotcom/TCSSMB/

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.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-17-2011, 06:37 PM (This post was last modified: 08-17-2011 06:38 PM by sachy78.)
Post: #7
RE: Static content gets downloaded even after expiry set to access + 1 month
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.
Find all posts by this user
Quote this message in a reply
08-22-2011, 09:42 PM
Post: #8
RE: Static content gets downloaded even after expiry set to access + 1 month
Got the issue.

From the application there was a call done to test.js and from some where else test.js?1.2.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)