From 618c0bca8219988b365faac9933cd005a3cd0d29 Mon Sep 17 00:00:00 2001 From: Serhey Dolgushev Date: Wed, 20 Oct 2021 09:58:14 +0100 Subject: [PATCH] Use s-maxage instead of max-age for ESI --- http_cache/esi.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/http_cache/esi.rst b/http_cache/esi.rst index a166a01762e..7229608665e 100644 --- a/http_cache/esi.rst +++ b/http_cache/esi.rst @@ -174,9 +174,8 @@ of the main page:: { public function latest($maxPerPage) { - // ... - $response->setPublic(); - $response->setMaxAge(60); + // sets to public and adds some expiration + $response->setSharedMaxAge(60); return $response; }