8000 no 304 response if method is not cacheable · symfony/symfony@3d6b450 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3d6b450

Browse files
committed
no 304 response if method is not cacheable
1 parent f76e77f commit 3d6b450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1000,7 +1000,7 @@ public function setVary($headers, $replace = true)
10001000
*/
10011001
public function isNotModified(Request $request)
10021002
{
1003-
if (!$request->isMethodSafe()) {
1003+
if (!$request->isMethodCacheable()) {
10041004
return false;
10051005
}
10061006

0 commit comments

Comments
 (0)
0