File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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',
You can’t perform that action at this time.
0 commit comments