Skip to content

Response: set max age

Available since: 1.1.0

Fields

Client value (max-age)

The number of seconds for the client-side max age.
This field supports tokens.

Shared value (s-max-age)

The number of seconds for the shared max age.
This field supports tokens.

Set public

Cacheability is usually only working when the response is set to be public. When not enabled, the response will be set as private.

Set expires

When enabled, the expires header is automatically derived from the defined max age.