MINOR: cache: Add a process-vary option that can enable/disable Vary processing
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 16 Nov 2020 14:56:10 +0000 (15:56 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 24 Nov 2020 15:52:57 +0000 (16:52 +0100)
commit754b2428d37ad3a01531dc8ae5c3a32301311cda
treef8ea4b40e6fc88bceba936147118262e960b5b60
parent1785f3dd961e5fe2b0ede4b4af7baf4e20163f37
MINOR: cache: Add a process-vary option that can enable/disable Vary processing

The cache section's process-vary option takes a 0 or 1 value to disable
or enable the vary processing.
When disabled, a response containing such a header will never be cached.
When enabled, we will calculate a preliminary hash for a subset of request
headers on all the incoming requests (which might come with a cpu cost) which
will be used to build a secondary key for a given request (see RFC 7234#4.1).
The default value is 0 (disabled).
doc/configuration.txt
reg-tests/cache/vary.vtc
src/cache.c