How can I verify that javascript and images are being cached?

Posted by BestPractices on Stack Overflow See other posts from Stack Overflow or by BestPractices
Published on 2010-03-24T14:56:01Z Indexed on 2010/03/24 15:03 UTC
Read the original article Hit count: 458

Filed under:
|
|

I want to verify that the images, css, and javascript files that are part of my page are being cached by my browser. I've used Fiddler and Google Page Speed and it's unclear whether either is giving me the information I need. Fiddler shows the HTTP 304 response for images, css, and javascript which should tell the browser to use the cached copy. Google Page Speed shows the 304 response but doesn't show a Transfer Size of Zero, instead it shows the full file size of the resource. Note also, I have seen Google Page Speed report a 200 response but then put the word (cache) next to the 200 (so Status is 200 (cache)), which doesnt make a lot of sense.

Any other suggestions as to how I can verify whether the server is sending back images, css, javascript after they've been retrieved and cached by a previous page hit?

© Stack Overflow or respective owner

Related posts about caching

Related posts about fiddler