8000 [HttpCache] fixed if-modified-since header default to an empty string… · symfony/symfony@c64e5cb · GitHub
[go: up one dir, main page]

Skip to content

Commit c64e5cb

Browse files
committed
[HttpCache] fixed if-modified-since header default to an empty string if the last-modified header was not set
1 parent 29cabf9 commit c64e5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ protected function validate(Request $request, Response $entry, $catch = false)
352352
}
353353

354354
// add our cached last-modified validator
355-
$subRequest->headers->set('if_modified_since', $entry->headers->get('Last-Modified'));
355+
$subRequest->headers->set('if_modified_since', $entry->headers->get('Last-Modified', ''));
356356

357357
// Add our cached etag validator to the environment.
358358
// We keep the etags from the client to handle the case when the client

0 commit comments

Comments
 (0)
0