summaryrefslogtreecommitdiffstats
path: root/docs/manual/mod/mod_cache.html.en
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2011-02-15 13:52:47 +0100
committerRich Bowen <rbowen@apache.org>2011-02-15 13:52:47 +0100
commitc787a7ffcf62ddf63acff0d18d8df52d028043e7 (patch)
tree2852ab02910bbc547cf0e36a79145412fa52aafa /docs/manual/mod/mod_cache.html.en
parentAdds simplified Chinese translation to httpd trunk docs. Via (diff)
downloadapache2-c787a7ffcf62ddf63acff0d18d8df52d028043e7.tar.xz
apache2-c787a7ffcf62ddf63acff0d18d8df52d028043e7.zip
Rebulds transformation, adding simplified chinese translation documents.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1070871 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_cache.html.en')
-rw-r--r--docs/manual/mod/mod_cache.html.en8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/manual/mod/mod_cache.html.en b/docs/manual/mod/mod_cache.html.en
index 92c6df04cf..5439e57f2d 100644
--- a/docs/manual/mod/mod_cache.html.en
+++ b/docs/manual/mod/mod_cache.html.en
@@ -327,13 +327,15 @@
</code></p></div>
<p>Based on the caching decision made, the reason is also written to the
- subprocess environment under one the following three keys, as appropriate:</p>
+ subprocess environment under one the following four keys, as appropriate:</p>
<dl>
<dt>cache-hit</dt><dd>The response was served from cache.</dd>
<dt>cache-revalidate</dt><dd>The response was stale and was successfully
revalidated, then served from cache.</dd>
<dt>cache-miss</dt><dd>The response was served from the upstream server.</dd>
+ <dt>cache-invalidate</dt><dd>The cached entity was invalidated by a request
+ method other than GET or HEAD.</dd>
</dl>
<p>This makes it possible to support conditional logging of cached requests
@@ -343,8 +345,12 @@
CustomLog cached-requests.log common env=cache-hit<br />
CustomLog uncached-requests.log common env=cache-miss<br />
CustomLog revalidated-requests.log common env=cache-revalidate<br />
+ CustomLog invalidated-requests.log common env=cache-invalidate<br />
</code></p></div>
+ <p>For module authors, a hook called <var>cache_status</var> is available,
+ allowing modules to respond to the caching outcomes above in customised
+ ways.</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="CacheDefaultExpire" id="CacheDefaultExpire">CacheDefaultExpire</a> <a name="cachedefaultexpire" id="cachedefaultexpire">Directive</a></h2>