Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions http_cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ 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
Expand Down