0

I thought public cache was not possible when using HTTPS since every response was different (due to encryption), but just now I realized one could at least cache the unencrypted response, and the only work the server would have to do is encrypt it for each new user.

Is that how it's done by default? If not, can it be done?

I'm using nginx with fastcgi_cache.

1 Answer 1

1

Yes, you can cache pages served via https.

Caching decision making is driven by the HTTP Cache-Control and Expires headers, nothing more.

However, typically they aren't cached because Cache-Control is set to private because a user is logged into the site. If no user is logged in, you can make it public and then it becomes cacheable.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .