Skip to content

Commit 10792c3

Browse files
committed
minor symfony#3959 [book][cache][tip] added cache annotations. (aitboudad)
This PR was merged into the 2.3 branch. Discussion ---------- [book][cache][tip] added cache annotations. | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes | Applies to | all |Fixed tickets | - Commits ------- a81d330 [book][cache][tip] added cache annotations.
2 parents fdb8a32 + a81d330 commit 10792c3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

book/http_cache.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,12 @@ both worlds. In other words, by using both expiration and validation, you
763763
can instruct the cache to serve the cached content, while checking back
764764
at some interval (the expiration) to verify that the content is still valid.
765765

766+
.. tip::
767+
768+
You can also define HTTP caching headers for expiration and validation by using
769+
annotations. See the
770+
:doc:`FrameworkExtraBundle documentation </bundles/SensioFrameworkExtraBundle/annotations/cache>`.
771+
766772
.. index::
767773
pair: Cache; Configuration
768774

0 commit comments

Comments
 (0)