Files
archived-symfony-docs/http_cache/_expiration-and-validation.rst.inc

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.