Current time: 12-09-2019, 09:23 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
static files not caching with correct headers
07-25-2012, 12:41 AM
Post: #1
static files not caching with correct headers
Is there a reason why the static files are being requested again when they should already be cached for 7 days on the local machine? The 2nd hit to the page should get this static file from the local machine without requesting it from the server and receiving a 304 code response.

1st view Request #13:

http://www.webpagetest.org/result/120724...1/details/

2nd view Request #3:

http://www.webpagetest.org/result/120724...ls/cached/

Let me know if my understanding is correct or not.

Regards,
TRX
Find all posts by this user
Quote this message in a reply
07-25-2012, 12:49 AM
Post: #2
RE: static files not caching with correct headers
A vary header on images will prevent IE from caching them - http://blogs.msdn.com/b/ieinternals/arch...in-ie.aspx

Otherwise you understanding would have been correct. Just send vary headers for text content that would otherwise be gzipped and it should start working.
Visit this user's website Find all posts by this user
Quote this message in a reply
07-25-2012, 03:30 PM
Post: #3
RE: static files not caching with correct headers
Would you recommend stripping out the "Vary" http header?
Why would apache application send that "Vary" http header OTTB?

Thanks.
Find all posts by this user
Quote this message in a reply
07-26-2012, 03:13 AM
Post: #4
RE: static files not caching with correct headers
Apache wouldn't normally send the vary header unless it was actually gzipping the content so it's worth going through your configs to make sure the mime types for gzip are set up correctly and that you aren't using mod_headers to force the Vary header.
Visit this user's website Find all posts by this user
Quote this message in a reply
08-01-2012, 05:01 AM
Post: #5
RE: static files not caching with correct headers
Thanks. I'll look into this so that some of the static files are being cached properly.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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