Skip to content

Commit 2d325a3

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: [Validator] Add missing dot Use s-maxage instead of max-age for ESI
2 parents b430be8 + c91dc94 commit 2d325a3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
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
}

validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ message:
193193
.. code-block:: text
194194
195195
Object(App\Entity\Author).name:
196-
This value should not be blank
196+
This value should not be blank.
197197
198198
If you insert a value into the ``name`` property, the happy success message
199199
will appear.

0 commit comments

Comments
 (0)