Chris@0: Chris@0: * Chris@0: * This code is partially based on the Rack-Cache library by Ryan Tomayko, Chris@0: * which is released under the MIT license. Chris@0: * (based on commit 02d2b48d75bcb63cf1c0c7149c077ad256542801) Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\HttpKernel\HttpCache; Chris@0: Chris@0: use Symfony\Component\HttpFoundation\Response; Chris@0: Chris@0: /** Chris@0: * ResponseCacheStrategyInterface implementations know how to compute the Chris@0: * Response cache HTTP header based on the different response cache headers. Chris@0: * Chris@0: * @author Fabien Potencier Chris@0: */ Chris@0: interface ResponseCacheStrategyInterface Chris@0: { Chris@0: /** Chris@0: * Adds a Response. Chris@0: */ Chris@0: public function add(Response $response); Chris@0: Chris@0: /** Chris@0: * Updates the Response HTTP headers based on the embedded Responses. Chris@0: */ Chris@0: public function update(Response $response); Chris@0: }