Skip to content

Commit

Permalink
[HttpKernel] tweaked the default ESI cache strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed May 9, 2011
1 parent 80a5074 commit 9844685
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -60,9 +60,10 @@ public function update(Response $response)
return;
}

$maxAge = min($this->maxAges);
$response->setSharedMaxAge($maxAge);
if (null !== $maxAge = min($this->maxAges)) {
$response->setSharedMaxAge($maxAge);
$response->headers->set('Age', $maxAge - min($this->ttls));
}
$response->setMaxAge(0);
$response->headers->set('Age', $maxAge - min($this->ttls));
}
}

0 comments on commit 9844685

Please sign in to comment.