From 3d6b4502c80c1e616391beee6d618898abe1cd37 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 14 Oct 2016 13:10:27 +0200 Subject: [PATCH] no 304 response if method is not cacheable --- src/Symfony/Component/HttpFoundation/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/Response.php b/src/Symfony/Component/HttpFoundation/Response.php index 9babc6345a..7a05a03cdc 100644 --- a/src/Symfony/Component/HttpFoundation/Response.php +++ b/src/Symfony/Component/HttpFoundation/Response.php @@ -1000,7 +1000,7 @@ class Response */ public function isNotModified(Request $request) { - if (!$request->isMethodSafe()) { + if (!$request->isMethodCacheable()) { return false; }