Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

Thanks!

share|improve this question
add comment

1 Answer

up vote 1 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
add comment

Your Answer

 
discard

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.