mirror of
https://github.com/symfony/symfony-docs.git
synced 2026-03-24 00:32:14 +01:00
8 lines
425 B
PHP
8 lines
425 B
PHP
.. sidebar:: Expiration and Validation
|
|
|
|
You can use both validation and expiration within the same ``Response``.
|
|
As expiration wins over validation, you can benefit from the best of
|
|
both worlds. In other words, by using both expiration and validation, you
|
|
can instruct the cache to serve the cached content, while checking back
|
|
at some interval (the expiration) to verify that the content is still valid.
|