class ResponseCacheStrategy implements ResponseCacheStrategyInterface
ResponseCacheStrategy knows how to compute the Response cache HTTP header based on the different response cache headers.
This implementation changes the master response TTL to the smallest TTL received or force validation if one of the surrogates has validation cache strategy.
add(Response $response) Adds a Response. | ||
update(Response $response) Updates the Response HTTP headers based on the embedded Responses. |
Adds a Response.
Response | $response |
Updates the Response HTTP headers based on the embedded Responses.
Response | $response |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.html