diff options
Diffstat (limited to 'docs/manual/caching.html.en')
-rw-r--r-- | docs/manual/caching.html.en | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/docs/manual/caching.html.en b/docs/manual/caching.html.en index 71bb8e0a..2b848258 100644 --- a/docs/manual/caching.html.en +++ b/docs/manual/caching.html.en @@ -68,7 +68,7 @@ often.</p> <p>As <code class="module"><a href="./mod/mod_file_cache.html">mod_file_cache</a></code> presents a relatively simple - caching implementation, apart from the specific sections on <code class="directive"><a href="./mod/mod_file_cache.html#cachefile">CacheFile</a></code> and <code class="directive"><a href="./mod/mod_file_cache.html#mmapstatic">MMapStatic</a></code>, the explanations + caching implementation, apart from the specific sections on <code class="directive"><a href="./mod/mod_file_cache.html#cachefile">CacheFile</a></code> and <code class="directive"><a href="./mod/mod_file_cache.html#mmapfile">MMapFile</a></code>, the explanations in this guide cover the <code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code> caching architecture.</p> @@ -83,7 +83,7 @@ - <table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code></li><li><code class="module"><a href="./mod/mod_mem_cache.html">mod_mem_cache</a></code></li><li><code class="module"><a href="./mod/mod_disk_cache.html">mod_disk_cache</a></code></li><li><code class="module"><a href="./mod/mod_file_cache.html">mod_file_cache</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_cache.html#cacheenable">CacheEnable</a></code></li><li><code class="directive"><a href="./mod/mod_cache.html#cachedisable">CacheDisable</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#mmapstatic">MMapStatic</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#cachefile">CacheFile</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#cachefile">CacheFile</a></code></li><li><code class="directive"><a href="./mod/core.html#usecanonicalname">UseCanonicalName</a></code></li><li><code class="directive"><a href="./mod/mod_negotiation.html#cachenegotiateddocs">CacheNegotiatedDocs</a></code></li></ul></td></tr></table> + <table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code></li><li><code class="module"><a href="./mod/mod_mem_cache.html">mod_mem_cache</a></code></li><li><code class="module"><a href="./mod/mod_disk_cache.html">mod_disk_cache</a></code></li><li><code class="module"><a href="./mod/mod_file_cache.html">mod_file_cache</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_cache.html#cacheenable">CacheEnable</a></code></li><li><code class="directive"><a href="./mod/mod_cache.html#cachedisable">CacheDisable</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#cachefile">CacheFile</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#mmapfile">MMapFile</a></code></li><li><code class="directive"><a href="./mod/core.html#usecanonicalname">UseCanonicalName</a></code></li><li><code class="directive"><a href="./mod/mod_negotiation.html#cachenegotiateddocs">CacheNegotiatedDocs</a></code></li></ul></td></tr></table> <p>There are two main stages in <code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code> that can occur in the lifetime of a request. First, <code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code> @@ -269,7 +269,7 @@ not be cached.</p> <p>If on the other hand, the content served differs depending on the - values of various HTTP headers, it is possible that it might be possible + values of various HTTP headers, it might be possible to cache it intelligently through the use of a "Vary" header.</p> @@ -290,10 +290,9 @@ Vary: negotiate,accept-language,accept-charset </code></p></div> <p><code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code> will only serve the cached content to - requesters with matching accept-language and accept-charset headers + requesters with accept-language and accept-charset headers matching those of the original request.</p> - </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="security" id="security">Security Considerations</a></h2> @@ -321,7 +320,7 @@ Vary: negotiate,accept-language,accept-charset directive, or <code class="module"><a href="./mod/mod_expires.html">mod_expires</a></code>. Left unchecked, <code class="module"><a href="./mod/mod_cache.html">mod_cache</a></code> - very much like a reverse proxy - would cache the content when served and then serve it to any client, on any IP - address.</p> + address.</p> <h3>Local exploits</h3> @@ -433,7 +432,7 @@ Vary: negotiate,accept-language,accept-charset <h2><a name="inmemory" id="inmemory">In-Memory Caching</a></h2> - <table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_mem_cache.html">mod_mem_cache</a></code></li><li><code class="module"><a href="./mod/mod_file_cache.html">mod_file_cache</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_cache.html#cacheenable">CacheEnable</a></code></li><li><code class="directive"><a href="./mod/mod_cache.html#cachedisable">CacheDisable</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#mmapstatic">MMapStatic</a></code></li></ul></td></tr></table> + <table class="related"><tr><th>Related Modules</th><th>Related Directives</th></tr><tr><td><ul><li><code class="module"><a href="./mod/mod_mem_cache.html">mod_mem_cache</a></code></li><li><code class="module"><a href="./mod/mod_file_cache.html">mod_file_cache</a></code></li></ul></td><td><ul><li><code class="directive"><a href="./mod/mod_cache.html#cacheenable">CacheEnable</a></code></li><li><code class="directive"><a href="./mod/mod_cache.html#cachedisable">CacheDisable</a></code></li><li><code class="directive"><a href="./mod/mod_file_cache.html#mmapfile">MMapFile</a></code></li></ul></td></tr></table> <p>Serving directly from system memory is universally the fastest method of serving content. Reading files from a disk controller or, even worse, @@ -495,23 +494,23 @@ sys 0m0.000s</pre></div> not locally stored but remotely served. If you still want the unbeatable speed of in-memory caching, Apache's own memory caching is needed.</p> - <h3>MMapStatic Caching</h3> + <h3>MMapFile Caching</h3> <p><code class="module"><a href="./mod/mod_file_cache.html">mod_file_cache</a></code> provides the - <code class="directive"><a href="./mod/mod_file_cache.html#mmapstatic">MMapStatic</a></code> directive, which + <code class="directive"><a href="./mod/mod_file_cache.html#mmapfile">MMapFile</a></code> directive, which allows you to have Apache map a static file's contents into memory at start time (using the mmap system call). Apache will use the in-memory contents for all subsequent accesses to this file.</p> - <div class="example"><pre>MMapStatic /usr/local/apache2/htdocs/index.html</pre></div> + <div class="example"><pre>MMapFile /usr/local/apache2/htdocs/index.html</pre></div> <p>As with the <code class="directive"><a href="./mod/mod_file_cache.html#cachefile">CacheFile</a></code> directive, any changes in these files will not be picked up by Apache after it has started.</p> - <p> The <code class="directive"><a href="./mod/mod_file_cache.html#mmapstatic">MMapStatic</a></code> + <p> The <code class="directive"><a href="./mod/mod_file_cache.html#mmapfile">MMapFile</a></code> directive does not keep track of how much memory it allocates, so you must ensure not to over-use the directive. Each Apache child process will replicate this memory, so it is critically important @@ -654,6 +653,6 @@ CacheDirLength 1</pre></div> <a href="./fr/caching.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | <a href="./tr/caching.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p> </div><div id="footer"> -<p class="apache">Copyright 2008 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2009 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="./mod/">Modules</a> | <a href="./mod/directives.html">Directives</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">Glossary</a> | <a href="./sitemap.html">Sitemap</a></p></div> </body></html>
\ No newline at end of file |