Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With all the talk about FireSheep I am thinking of switching my web applications to use full https accross the entire site. However, I am concerned about caching. I use a lot of JavaScript, CSS files, images, and other static content that I expect the browser to cache. If it doesn't that could mean significant delays for users.

Is there a way to get browsers to cache static content served via SSL? Will the cache-control: public HTTP header help? How do the different browsers handle this? Do they never cache the data? Do they cache for a single browser session?

I don't want to serve the static content from an unsecured connection if that means some browsers will put up the warning that some resources are not secure. Is there an alternative solution?


share|improve this question
up vote 2 down vote accepted

This stackoverflow answer tells you everything you need to know.

share|improve this answer
Thanks. It seems to say that FF3+ and IE will do it if that header is set. Earlier versions of FF only cache for the browser's session (in-memory). What about Opera, Safari, Konqueror, and Chrome? – Adam Oct 27 '10 at 20:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.