Skip to content

Commit 618c0bc

Browse files
Use s-maxage instead of max-age for ESI
1 parent be8ec3d commit 618c0bc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

http_cache/esi.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,8 @@ of the main page::
174174
{
175175
public function latest($maxPerPage)
176176
{
177-
// ...
178-
$response->setPublic();
179-
$response->setMaxAge(60);
177+
// sets to public and adds some expiration
178+
$response->setSharedMaxAge(60);
180179

181180
return $response;
182181
}

0 commit comments

Comments
 (0)