Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 108cd38

Browse files
author
remieuronews
committedJan 25, 2022
[cache] 45036 add stale while revalidate and stale if error support
1 parent f0d803f commit 108cd38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎components/http_foundation.rst

+4
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ of methods to manipulate the HTTP headers related to the cache:
495495
* :method:`Symfony\\Component\\HttpFoundation\\Response::setExpires`
496496
* :method:`Symfony\\Component\\HttpFoundation\\Response::setMaxAge`
497497
* :method:`Symfony\\Component\\HttpFoundation\\Response::setSharedMaxAge`
498+
* :method:`Symfony\\Component\\HttpFoundation\\Response::setStaleIfError`
499+
* :method:`Symfony\\Component\\HttpFoundation\\Response::setStaleWhileRevalidate`
498500
* :method:`Symfony\\Component\\HttpFoundation\\Response::setTtl`
499501
* :method:`Symfony\\Component\\HttpFoundation\\Response::setClientTtl`
500502
* :method:`Symfony\\Component\\HttpFoundation\\Response::setLastModified`
@@ -522,6 +524,8 @@ call::
522524
'proxy_revalidate' => false,
523525
'max_age' => 600,
524526
's_maxage' => 600,
527+
'stale_if_error' => 86400,
528+
'stale_while_revalidate' => 60,
525529
'immutable' => true,
526530
'last_modified' => new \DateTime(),
527531
'etag' => 'abcdef',

0 commit comments

Comments
 (0)
Please sign in to comment.