From c64e5cba91c0bbe25b3930e22ac416fce5fce1f8 Mon Sep 17 00:00:00 2001 From: Alex Kalineskou Date: Mon, 21 Oct 2019 22:33:54 +0300 Subject: [PATCH] [HttpCache] fixed if-modified-since header default to an empty string if the last-modified header was not set --- src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php index addeca8bae143..ef52e350185d3 100644 --- a/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php +++ b/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php @@ -352,7 +352,7 @@ protected function validate(Request $request, Response $entry, $catch = false) } // add our cached last-modified validator - $subRequest->headers->set('if_modified_since', $entry->headers->get('Last-Modified')); + $subRequest->headers->set('if_modified_since', $entry->headers->get('Last-Modified', '')); // Add our cached etag validator to the environment. // We keep the etags from the client to handle the case when the client