Skip to content

Commit

Permalink
no 304 response if method is not cacheable
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Oct 14, 2016
1 parent f76e77f commit 3d6b450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Response.php
Expand Up @@ -1000,7 +1000,7 @@ public function setVary($headers, $replace = true)
*/
public function isNotModified(Request $request)
{
if (!$request->isMethodSafe()) {
if (!$request->isMethodCacheable()) {
return false;
}

Expand Down

0 comments on commit 3d6b450

Please sign in to comment.