Skip to content

Commit

Permalink
Update doc/symfony-cache-configuration.rst
Browse files Browse the repository at this point in the history
Co-authored-by: David Buchmann <[email protected]>
  • Loading branch information
alexander-schranz and dbu authored Jul 23, 2024
1 parent 57da161 commit 40065f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/symfony-cache-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ You can enable keeping the custom header with the `keepTtlHeader` parameter::

new CustomTtlListener('My-TTL-Header', keepTtlHeader: true);

By default if the custom ttl header is not found it will fallback to s-maxage.
By default if the custom ttl header is not present, the listener falls back to the s-maxage cache-control directive.
To disable this behavior you can set the `fallbackToSmaxage` parameter to false::

new CustomTtlListener('My-TTL-Header', keepTtlHeader: true, fallbackToSmaxage: false);
Expand Down

0 comments on commit 40065f5

Please sign in to comment.