diff options
author | Graham Leggett <minfrin@apache.org> | 2010-10-12 01:32:56 +0200 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2010-10-12 01:32:56 +0200 |
commit | 0f267cd6ad4c520f8f7265867fcff4f0d71cc2cb (patch) | |
tree | 578606725872ef97b1a32dd3248f40357deaeff9 /docs/manual/mod/mod_cache.xml | |
parent | Use the more popular spelling variant. (diff) | |
download | apache2-0f267cd6ad4c520f8f7265867fcff4f0d71cc2cb.tar.xz apache2-0f267cd6ad4c520f8f7265867fcff4f0d71cc2cb.zip |
mod_cache: Optionally serve stale data when a revalidation returns a
5xx response, controlled by the CacheStaleOnError directive.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1021546 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_cache.xml')
-rw-r--r-- | docs/manual/mod/mod_cache.xml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/docs/manual/mod/mod_cache.xml b/docs/manual/mod/mod_cache.xml index a160537da4..5c3579eae8 100644 --- a/docs/manual/mod/mod_cache.xml +++ b/docs/manual/mod/mod_cache.xml @@ -948,4 +948,32 @@ LastModified date.</description> </usage> </directivesynopsis> +<directivesynopsis> +<name>CacheStaleOnError</name> +<description>Serve stale content in place of 5xx responses.</description> +<syntax>CacheStaleOnError <var>on|off</var></syntax> +<default>CacheStaleOnError on</default> +<contextlist><context>server config</context> + <context>virtual host</context> + <context>directory</context> + <context>.htaccess</context> +</contextlist> +<compatibility>Available in Apache 2.3.9 and later</compatibility> + +<usage> + <p>When the <directive module="mod_cache">CacheStaleOnError</directive> directive + is switched on, and when stale data is available in the cache, the cache will + respond to 5xx responses from the backend by returning the stale data instead of + the 5xx response. While the Cache-Control headers sent by clients will be respected, + and the raw 5xx responses returned to the client on request, the 5xx response so + returned to the client will not invalidate the content in the cache.</p> + + <example> + # Serve stale data on error.<br /> + CacheStaleOnError on<br /> + </example> + +</usage> +</directivesynopsis> + </modulesynopsis> |