4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * This code is partially based on the Rack-Cache library by Ryan Tomayko,
9 * which is released under the MIT license.
10 * (based on commit 02d2b48d75bcb63cf1c0c7149c077ad256542801)
12 * For the full copyright and license information, please view the LICENSE
13 * file that was distributed with this source code.
16 namespace Symfony\Component\HttpKernel\HttpCache;
18 use Symfony\Component\HttpFoundation\Response;
21 * ResponseCacheStrategyInterface implementations know how to compute the
22 * Response cache HTTP header based on the different response cache headers.
24 * @author Fabien Potencier <fabien@symfony.com>
26 interface ResponseCacheStrategyInterface
31 * @param Response $response
33 public function add(Response $response);
36 * Updates the Response HTTP headers based on the embedded Responses.
38 * @param Response $response
40 public function update(Response $response);