Merge branch '6.4' into 7.3

* 6.4:
  Minor tweak
  Clarify `#[Cache]` attribute precedence behavior
This commit is contained in:
Javier Eguiluz
2025-11-25 08:12:16 +01:00

View File

@@ -235,6 +235,11 @@ Thanks to this new code, your HTTP response will have the following header:
Cache-Control: public, maxage=3600, must-revalidate
.. tip::
When both are used, the cache headers defined in the controller take
precedence over those configured with the ``#[Cache]`` attribute.
This tells your HTTP reverse proxy to cache this response for 3600 seconds. If *anyone*
requests this URL again before 3600 seconds, your application *won't* be hit at all.
If you're using the Symfony reverse proxy, look at the ``X-Symfony-Cache`` header