From 7341fb503e78187615a61ec24fd0a51e6e99179f Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 21 Feb 2023 19:34:18 +0100 Subject: [PATCH] [FrameworkBundle] Add `framework.http_cache.skip_response_headers` option --- reference/configuration/framework.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 97f4a1a8e26..9284771c1cf 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -119,6 +119,18 @@ Set of request headers that trigger "private" cache-control behavior on response that don't explicitly state whether the response is public or private via a Cache-Control directive. (default: Authorization and Cookie) +skip_response_headers +..................... + +**type**: ``array`` **default**: ``Set-Cookie`` + +Set of response headers that will never be cached even when the response is cacheable +and public. + +.. versionadded:: 6.3 + + The ``skip_response_headers`` option was introduced in Symfony 6.3. + allow_reload ............