From 11a3699e955cd7397358af39a70a7eb449baaba0 Mon Sep 17 00:00:00 2001 From: Andreas Schempp Date: Sat, 8 Dec 2018 16:05:32 +0000 Subject: [PATCH] Fixed fabbot.io issues --- .../HttpKernel/HttpCache/ResponseCacheStrategy.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.php b/src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.php index 2728346d0cfb3..1271bdb480cb7 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/ResponseCacheStrategy.php @@ -5,10 +5,6 @@ * * (c) Fabien Potencier * - * This code is partially based on the Rack-Cache library by Ryan Tomayko, - * which is released under the MIT license. - * (based on commit 02d2b48d75bcb63cf1c0c7149c077ad256542801) - * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ @@ -173,7 +169,7 @@ private function willMakeFinalResponseUncacheable(Response $response) // Last-Modified and Etag headers cannot be merged, they render the response uncacheable // by default (except if the response also has max-age etc.). - if (in_array($response->getStatusCode(), array(200, 203, 300, 301, 410)) + if (\in_array($response->getStatusCode(), array(200, 203, 300, 301, 410)) && null === $response->getLastModified() && null === $response->getEtag() ) {