From b7d889694c123d5e0747dff3e53653e4b5d78fb2 Mon Sep 17 00:00:00 2001 From: Bill Stoddard Date: Wed, 18 Dec 2002 22:12:37 +0000 Subject: [PATCH] Rename CacheMaxStreamingBuffer to MCacheMaxStreamingBuffer and move it out of mod_cache and into mod_mem_cache. Note default buffer size of the lesser of 100000 or MCacheMaxObjectSize git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98029 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_cache.xml | 43 +------------------------------ docs/manual/mod/mod_mem_cache.xml | 42 ++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+), 42 deletions(-) diff --git a/docs/manual/mod/mod_cache.xml b/docs/manual/mod/mod_cache.xml index 9ba8a4ee4e..00bdfd6e08 100644 --- a/docs/manual/mod/mod_cache.xml +++ b/docs/manual/mod/mod_cache.xml @@ -63,6 +63,7 @@ MCacheMinObjectSize MCacheMaxObjectSize MCacheRemovalAlgorithm + MCacheMaxStreamingBuffer @@ -313,46 +314,4 @@ will complete caching the file even if the request is cancelled. - -CacheMaxStreamingBuffer -Maximum amount of a streamed response to buffer in memory -before declaring the response uncacheable -CacheMaxStreamingBuffer size_in_bytes -CacheMaxStreamingBuffer 0 -server configvirtual host - - - -

The CacheMaxStreamingBuffer directive - specifies the maximum number of bytes of a streamed response to - buffer before deciding that the response is too big to cache. - A streamed response is one in which the entire content is not - immediately available and in which the Content-Length - may not be known. Sources of streaming responses include proxied - responses and the output of CGI scripts. 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. - The CacheMaxStreamingBuffer directive allows - buffering of streamed responses that don't contain a - Content-Length up to the specified maximum amount of - space. If the maximum buffer space is reached, the buffered - content is discarded and the attempt to cache is abandoned.

- - 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.

-
- - - # Enable caching of streamed responses up to 64KB:
- CacheMaxStreamingBuffer 65536 -
-
-
- diff --git a/docs/manual/mod/mod_mem_cache.xml b/docs/manual/mod/mod_mem_cache.xml index 03ddf71f2f..0405274289 100644 --- a/docs/manual/mod/mod_mem_cache.xml +++ b/docs/manual/mod/mod_mem_cache.xml @@ -158,4 +158,46 @@ cache + +MCacheMaxStreamingBuffer +Maximum amount of a streamed response to buffer in memory +before declaring the response uncacheable +MCacheMaxStreamingBuffer size_in_bytes +MCacheMaxStreamingBuffer the smaller of 100000 or MCacheMaxObjectSize +server config + + + +

The MCacheMaxStreamingBuffer directive + specifies the maximum number of bytes of a streamed response to + buffer before deciding that the response is too big to cache. + A streamed response is one in which the entire content is not + immediately available and in which the Content-Length + may not be known. Sources of streaming responses include proxied + responses and the output of CGI scripts. 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. + The MCacheMaxStreamingBuffer directive allows + buffering of streamed responses that don't contain a + Content-Length up to the specified maximum amount of + space. If the maximum buffer space is reached, the buffered + content is discarded and the attempt to cache is abandoned.

+ + Note: +

Using a nonzero value for MCacheMaxStreamingBuffer + will not delay the transmission of the response to the client. + As soon as mod_mem_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.

+
+ + + # Enable caching of streamed responses up to 64KB:
+ MCacheMaxStreamingBuffer 65536 +
+
+
+ -- 2.40.0