3 ms·
Slightly off-topic, but what is a cache for SSL? That is, what exactly is being cached, and who's doing it? I ask because I'm writing a little API (both server
by beder 15y ago
Slightly off-topic, but what is a cache for SSL? That is, what exactly is being cached, and who's doing it?
I ask because I'm writing a little API (both server/client) that uses SSL, and just connecting can be brutally long - so I might be doing something wrong here.
- zhoutong 15y agoWell, I think I may have used the inaccurate term. The cache for SSL has two parts: # You need to reuse the session, instead of forcing the client to do the full handshake every time. # You can consider setting a high Keep-Alive value to improve the performance by avoiding long overhead time.
- pornel 15y agoIn addition to reuse of SSL sessions, files downloaded over HTTPS can be cacheable as well — you just need to add: Cache-Control: max-age=<number of seconds> this way you'll eliminate roundtrip needed for redownload/cache validation.