From 9d6001b8280bdfc7c191e1ac3d2b2a5ee7413c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Tue, 12 Dec 2017 10:01:02 +0100 Subject: [PATCH] Fix bug --- src/Illuminate/Http/Middleware/Cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Http/Middleware/Cache.php b/src/Illuminate/Http/Middleware/Cache.php index 9af851365656..2910cdca5bbd 100644 --- a/src/Illuminate/Http/Middleware/Cache.php +++ b/src/Illuminate/Http/Middleware/Cache.php @@ -35,7 +35,7 @@ public function handle($request, Closure $next, $options = []) $options = $parsedOptions; } - if (true === ($options['etag'] ?? false)) { + if (isset($options['etag']) && true === $options['etag']) { $options['etag'] = md5($response->getContent()); }