matomo
/
app
/
vendor
/
prefixed
/
symfony
/
http-kernel
/
HttpCache
/
ResponseCacheStrategyInterface.php
AbstractSurrogate.php
1 year ago
Esi.php
1 year ago
HttpCache.php
1 year ago
ResponseCacheStrategy.php
1 year ago
ResponseCacheStrategyInterface.php
2 years ago
Ssi.php
1 year ago
Store.php
1 year ago
StoreInterface.php
2 years ago
SubRequestHandler.php
2 years ago
SurrogateInterface.php
1 year ago
ResponseCacheStrategyInterface.php
35 lines
| 1 | <?php |
| 2 | |
| 3 | /* |
| 4 | * This file is part of the Symfony package. |
| 5 | * |
| 6 | * (c) Fabien Potencier <fabien@symfony.com> |
| 7 | * |
| 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) |
| 11 | * |
| 12 | * For the full copyright and license information, please view the LICENSE |
| 13 | * file that was distributed with this source code. |
| 14 | */ |
| 15 | namespace Matomo\Dependencies\Symfony\Component\HttpKernel\HttpCache; |
| 16 | |
| 17 | use Matomo\Dependencies\Symfony\Component\HttpFoundation\Response; |
| 18 | /** |
| 19 | * ResponseCacheStrategyInterface implementations know how to compute the |
| 20 | * Response cache HTTP header based on the different response cache headers. |
| 21 | * |
| 22 | * @author Fabien Potencier <fabien@symfony.com> |
| 23 | */ |
| 24 | interface ResponseCacheStrategyInterface |
| 25 | { |
| 26 | /** |
| 27 | * Adds a Response. |
| 28 | */ |
| 29 | public function add(Response $response); |
| 30 | /** |
| 31 | * Updates the Response HTTP headers based on the embedded Responses. |
| 32 | */ |
| 33 | public function update(Response $response); |
| 34 | } |
| 35 |