Skip to content

Commit

Permalink
[HttpKernel] fixed default ESI cache strategy when the page does not …
Browse files Browse the repository at this point in the history
…contain ESIs
  • Loading branch information
fabpot committed May 12, 2011
1 parent 7adedf9 commit 0a3ff1c
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -54,6 +54,11 @@ public function add(Response $response)
*/
public function update(Response $response)
{
// if we only have one Response, do nothing
if (1 === count($this->ttls)) {
return;
}

if (!$this->cacheable) {
$response->headers->set('Cache-Control', 'no-cache, must-revalidate');

Expand Down

0 comments on commit 0a3ff1c

Please sign in to comment.