Skip to content

Commit c207a81

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: Minor tweak Clarify `#[Cache]` attribute precedence behavior
2 parents 7cc8d25 + 491e435 commit c207a81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

http_cache.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,11 @@ Thanks to this new code, your HTTP response will have the following header:
235235
236236
Cache-Control: public, maxage=3600, must-revalidate
237237
238+
.. tip::
239+
240+
When both are used, the cache headers defined in the controller take
241+
precedence over those configured with the ``#[Cache]`` attribute.
242+
238243
This tells your HTTP reverse proxy to cache this response for 3600 seconds. If *anyone*
239244
requests this URL again before 3600 seconds, your application *won't* be hit at all.
240245
If you're using the Symfony reverse proxy, look at the ``X-Symfony-Cache`` header

0 commit comments

Comments
 (0)