8000 [HttpFoundation] fixed the check of 'proxy-revalidate' in Response::m… · symfony/symfony@c980c3f · GitHub
[go: up one dir, main page]

Skip to content

Commit c980c3f

Browse files
committed
[HttpFoundation] fixed the check of 'proxy-revalidate' in Response::mustRevalidate()
'proxy-revalidate' is not a header on its own but a 'Cache-Control' directive See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9 This fixes issue #15262
1 parent 6b02601 commit c980c3f

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
@@ -587,7 +587,7 @@ public function setPublic()
587587
*/
588588
public function mustRevalidate()
589589
{
590-
return $this->headers->hasCacheControlDirective('must-revalidate') || $this->headers->has('proxy-revalidate');
590+
return $this->headers->hasCacheControlDirective('must-revalidate') || $this->headers->hasCacheControlDirective('proxy-revalidate');
591591
}
592592

593593
/**

0 commit comments

Comments
 (0)
0