mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-23 16:22:10 +01:00
Merge branch '6.4' into 7.3
* 6.4: Minor tweak Clarify `#[Cache]` attribute precedence behavior
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user