From a94e304a8c1d09de738b731b7dfb35d3c78f1e66 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Andr=C3=A9=20Malo?= mod_cache implements an RFC 2616 compliant HTTP content
- cache that can be used to cache either local or proxied content.
- mod_cache requires the services of one or more storage
+
+ Content stored and retrived keyed to the URL. Content with
access protections is not cached. The
+
-# Sample Cache Configuration
-#
-LoadModule cache_module modules/mod_cache.so
-<IfModule mod_cache.c>
-
-#LoadModule disk_cache_module modules/mod_disk_cache.so
- <IfModule mod_disk_cache.c>
- CacheRoot c:/cacheroot
- CacheSize 256
- CacheEnable disk /
- CacheDirLevels 5
- CacheDirLength 3
- </IfModule>
-
- LoadModule mem_cache_module modules/mod_mem_cache.so
- <IfModule mod_mem_cache.c>
- MCacheEnable mem /
- MCacheSize 4096
- MCacheMaxObjectCount 100
- MCacheMinObjectSize 1
- MCacheMaxObjectSize 2048
- </IfModule>
-
-</IfModule>
-
+ # Sample Cache Configuration
+ #
+ LoadModule cache_module modules/mod_cache.so
+
+ <IfModule mod_cache.c>
+
+ <IfModule mod_disk_cache.c>
+
+ CacheSize 256
+ CacheEnable disk /
+ CacheDirLevels 5
+ CacheDirLength 3
+
+
+ LoadModule mem_cache_module modules/mod_mem_cache.so
+ <IfModule mod_mem_cache.c>
+
+ MCacheSize 4096
+ MCacheMaxObjectCount 100
+ MCacheMinObjectSize 1
+ MCacheMaxObjectSize 2048
+
+
- CacheEnable mem /manual
- CacheEnable fd /images
-mem
+ instructs disk
instructs
+
The
The maximum time in seconds to cache a document. The
The maximum time in seconds to cache a document. The
+ Expires
field from the header.
The default time in seconds to cache a document if the page does not have - an expiry date in the Expires field.
+ an expiry date in theExpires
field.
+
Ignore responses where there is no Last Modified Header
+Ignore responses where there is no Last Modified Header.
Ignore requests from the client for uncached content
The factor used to estimate the Expires date from the LastModified date.
Percentage of download to arrive for the cache to force complete transfert.
+Percentage of download to arrive for the cache to force complete transfer.
Maximum number of bytes of a streamed response (i.e., a response where -the entire content is not available all at once, such as a proxy or CGI -response) to buffer before deciding if the response is cacheable. By -default, a streamed response will not be cached unless it has a -Content-Length header. The reason for this is to avoid using a large amount -of memory to buffer a partial response that might end up being too large -to fit in the cache anyway. To enable caching of streamed responses, use -CacheMaxStreamingBuffer to specify the maximum amount of buffer space to use -per request.
- -Note: Using a nonzero value for CacheMaxStreamingBuffer will not delay the -transmission of the response to the client. As soon as mod_cache copies a -block of streamed content into a buffer, it sends the block on to the next -output filter for delivery to the client.
- -Maximum number of bytes of a streamed response (i.e., a
+ response where the entire content is not available all at once, such
+ as a proxy or CGI response) to buffer before deciding if the response
+ is cacheable. By default, a streamed response will not be
+ cached unless it has a Content-Length
header. The reason
+ for this is to avoid using a large amount of memory to buffer a partial
+ response that might end up being too large to fit in the cache anyway.
+ To enable caching of streamed responses, use
Using a nonzero value for