What do I benefit from ssl_session_cache
set in nginx.conf when I using https? See here.
Asked
Active
Viewed 1.6k times
1 Answers
15
When using SSL-Session-Cache, the performance of keep-alive connections over SSL might be enormously increased.
When the server does have it enabled, it is not necessary for the client to do a full SSL-handshake every request, thus saving time and cpu-resources.
You can read up more here: http://vincent.bernat.im/en/blog/2011-ssl-session-reuse-rfc5077.html
And here is a benchmark: http://www.peterbe.com/plog/ssl_session_cache-ab
Hope this helps.

NeedCoffee
- 166
- 1
- 4
-
1Why is it set to none by default? – DylanYoung Apr 14 '20 at 21:44
-
1The question was raised here: https://serverfault.com/questions/998053/why-is-the-ssl-session-cache-ssl-session-cache-disabled-by-default-in-nginx It seems nobody knows. Maybe memory concerns? – NeedCoffee Apr 15 '20 at 05:41
-
lol, funny. Thanks for the link. – DylanYoung Apr 15 '20 at 15:34
-
1Without ssl_session_cache shared:SSL:10m; Apple products cannot access the nginx server via SLL – schoetbi Sep 07 '20 at 20:11