Skip to content

Commit 995b2e6

Browse files
remieuronewsjaviereguiluz
authored andcommitted
[cache] 45036 add stale while revalidate and stale if error support
1 parent 529ade0 commit 995b2e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/http_foundation.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,8 @@ of methods to manipulate the HTTP headers related to the cache:
479479
* :method:`Symfony\\Component\\HttpFoundation\\Response::setExpires`
480480
* :method:`Symfony\\Component\\HttpFoundation\\Response::setMaxAge`
481481
* :method:`Symfony\\Component\\HttpFoundation\\Response::setSharedMaxAge`
482+
* :method:`Symfony\\Component\\HttpFoundation\\Response::setStaleIfError`
483+
* :method:`Symfony\\Component\\HttpFoundation\\Response::setStaleWhileRevalidate`
482484
* :method:`Symfony\\Component\\HttpFoundation\\Response::setTtl`
483485
* :method:`Symfony\\Component\\HttpFoundation\\Response::setClientTtl`
484486
* :method:`Symfony\\Component\\HttpFoundation\\Response::setLastModified`
@@ -506,6 +508,8 @@ call::
506508
'proxy_revalidate' => false,
507509
'max_age' => 600,
508510
's_maxage' => 600,
511+
'stale_if_error' => 86400,
512+
'stale_while_revalidate' => 60,
509513
'immutable' => true,
510514
'last_modified' => new \DateTime(),
511515
'etag' => 'abcdef',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy