Declare a cache section, allocate a shared cache memory named <name>, the
size of cache is mandatory (see keyword "total-max-size" below).
-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. Its maximum value is 4095.
-
-max-object-size <bytes>
- Define the maximum size of the objects to be cached. Must not be greater than
- an half of "total-max-size". If not set, it equals to a 256th of the cache size.
- All objects with sizes larger than "max-object-size" will not be cached.
-
max-age <seconds>
Define the maximum expiration duration. The expiration is set as the lowest
value between the s-maxage or max-age (in this order) directive in the
seconds, which means that you can't cache an object more than 60 seconds by
default.
+max-object-size <bytes>
+ Define the maximum size of the objects to be cached. Must not be greater than
+ an half of "total-max-size". If not set, it equals to a 256th of the cache size.
+ All objects with sizes larger than "max-object-size" will not be cached.
+
+max-secondary-entries <number>
+ Define the maximum number of simultaneous secondary entries with the same primary
+ key in the cache. This needs the vary support to be enabled. Its default value is 10
+ and should be passed a strictly positive integer.
+
process-vary <on/off>
Enable or disable the processing of the Vary header. When disabled, a response
containing such a header will never be cached. When enabled, we need to calculate
the contents of the 'accept-encoding', 'referer' and 'origin' headers for
now. The default value is off (disabled).
-max-secondary-entries <number>
- Define the maximum number of simultaneous secondary entries with the same primary
- key in the cache. This needs the vary support to be enabled. Its default value is 10
- and should be passed a strictly positive integer.
+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. Its maximum value is 4095.
6.2.2. Proxy section