diff options
author | Graham Leggett <minfrin@apache.org> | 2011-03-12 02:15:28 +0100 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2011-03-12 02:15:28 +0100 |
commit | e8f8ab78634d97321d3120fbd26584a91343fc7a (patch) | |
tree | eff4349a504acf720b8fbfbf2be4260d2b883121 /docs/manual/mod/mod_cache.xml | |
parent | fix some grammar mistakes, mostly in comments (diff) | |
download | apache2-e8f8ab78634d97321d3120fbd26584a91343fc7a.tar.xz apache2-e8f8ab78634d97321d3120fbd26584a91343fc7a.zip |
mod_cache: Make CacheEnable and CacheDisable configurable per
directory in addition to per server, making them work from within
a LocationMatch.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1080834 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_cache.xml')
-rw-r--r-- | docs/manual/mod/mod_cache.xml | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/docs/manual/mod/mod_cache.xml b/docs/manual/mod/mod_cache.xml index 97d7c11760..943ef2f66e 100644 --- a/docs/manual/mod/mod_cache.xml +++ b/docs/manual/mod/mod_cache.xml @@ -332,17 +332,20 @@ <name>CacheEnable</name> <description>Enable caching of specified URLs using a specified storage manager</description> -<syntax>CacheEnable <var>cache_type</var> <var>url-string</var></syntax> +<syntax>CacheEnable <var>cache_type</var> [<var>url-string</var>]</syntax> <contextlist><context>server config</context><context>virtual host</context> +<context>directory</context><context>.htaccess</context> </contextlist> <usage> <p>The <directive>CacheEnable</directive> directive instructs <module>mod_cache</module> to cache urls at or below <var>url-string</var>. The cache storage manager is specified with the - <var>cache_type</var> argument. If the <directive>CacheEnable</directive> - directive is placed inside a <directive type="section">Location</directive> - directive, the <var>url-string</var> becomes optional. + <var>cache_type</var> argument. The <directive>CacheEnable</directive> + directive can alternatively be placed inside either + <directive type="section">Location</directive> or + <directive type="section">LocationMatch</directive> sections to indicate + the content is cacheable. <var>cache_type</var> <code>disk</code> instructs <module>mod_cache</module> to use the disk based storage manager implemented by <module>mod_cache_disk</module>.</p> @@ -351,13 +354,28 @@ manager</description> each possible storage manager will be run until the first one that actually processes the request. The order in which the storage managers are run is determined by the order of the <directive>CacheEnable</directive> - directives in the configuration file.</p> + directives in the configuration file. <directive>CacheEnable</directive> + directives within <directive type="section">Location</directive> or + <directive type="section">LocationMatch</directive> sections are processed + before globally defined <directive>CacheEnable</directive> directives.</p> <p>When acting as a forward proxy server, <var>url-string</var> can also be used to specify remote sites and proxy protocols which caching should be enabled for.</p> - + <example> + # Cache content<br /> + <Location /foo><br /> + <indent> + CacheEnable disk<br /> + </indent> + </Location><br /><br /> + # Cache regex<br /> + <LocationMatch foo$><br /> + <indent> + CacheEnable disk<br /> + </indent> + </LocationMatch><br /><br /> # Cache proxied url's<br /> CacheEnable disk /<br /><br /> # Cache FTP-proxied url's<br /> @@ -390,6 +408,7 @@ manager</description> <description>Disable caching of specified URLs</description> <syntax>CacheDisable <var>url-string</var> | <var>on</var></syntax> <contextlist><context>server config</context><context>virtual host</context> +<context>directory</context><context>.htaccess</context> </contextlist> <usage> @@ -407,11 +426,13 @@ manager</description> <example><title>Example</title> <Location /foo><br /> + <indent> CacheDisable on<br /> + </indent> </Location><br /> </example> - <p> The <code>no-cache</code> environment variable can be set to + <p>The <code>no-cache</code> environment variable can be set to disable caching on a finer grained set of resources in versions 2.2.12 and later.</p> |