Reputation: 40653
I've noticed something interesting while monitoring the network communications between my browser and server. It has something to do with caching.
Say I have a CSS file http://domain.com/main.css (used in unsecured pages), which can also be accessed via https://domain.com/main.css (used in secured pages).
200 OK
. When I reload the page (or go to another unsecured page), I get a 304 Not Modified
.200 OK
. And when I reload the page (or go to another secured page, I get a 304 Not Modifie
.304 Not Modified
.200 OK
. What happened to the cached copy? How can I make it cached?Upvotes: 2
Views: 379
Reputation: 2984
This might answer your question. It might be the case that your website defines this resource as non cacheble by defining this :
Cache-Control private, must-revalidate, max-age=0
for example ( when accessing https://www.google.com/ncr) causing your browser not to cache it. Do you have Fire-bug\Fiddler or anything similar to view the response headers?
Upvotes: 1