]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: Update about the cache support for big objects.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 23 Oct 2018 08:09:19 +0000 (10:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Oct 2018 02:41:28 +0000 (04:41 +0200)
doc/configuration.txt

index b4c67c6a61c42a60d729b85a348343ccb1f129ab..4431e833d94362a014ef6192be2c2a05487cb5c0 100644 (file)
@@ -17467,9 +17467,7 @@ The cache won't store and won't deliver objects in these cases:
 
 - If the response is not a 200
 - If the response contains a Vary header
-- If the response does not contain a Content-Length header or if the
-  Content-Length + the headers size is greater than a buffer size - the
-  reserve.
+- If the Content-Length + the headers size is greater than "max-object-size"
 - If the response is not cacheable
 
 - If the request is not a GET
@@ -17497,6 +17495,10 @@ total-max-size <megabytes>
   Define the size in RAM of the cache in megabytes. This size is split in
   blocks of 1kB which are used by the cache entries.
 
+max-object-size <bytes>
+  Define the maximum size of the objects to be cached. If not set, it equals
+  to a 256th of the cache size.
+
 max-age <seconds>
   Define the maximum expiration duration. The expiration is set has the lowest
   value between the s-maxage or max-age (in this order) directive in the