HTTP SSL directives
ssl_session_cache directive
HTTP or server context; default none. Configures session parameter storage; shared cache spans worker processes, builtin is per worker. Cache reuse is not HTTP keepalive. Shared cache also manages ticket keys in eligible releases when not explicitly configured.
Formal Syntax & Structure
nginx syntaxnginx
ssl_session_cache off | none | [builtin[:size]] [shared:name:size];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| mode | off | none | builtin[:count] | Disable reuse, advertise without cache, or use library cache. May combine builtin and shared, but not off/none with a cache. |
| shared | shared:name:size | Shared cache across workers; either a mode or shared form must be supplied. |
Working Example
Example Snippetnginx
ssl_session_cache shared:lab_sessions:1m;