MINOR: cache: Create res.cache_hit and res.cache_name sample fetches
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 27 Oct 2020 10:55:57 +0000 (11:55 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 27 Oct 2020 17:25:43 +0000 (18:25 +0100)
commitbf97121f1c860c6fd4b77f2f1b7d4a0322d629c2
tree9b1d48cebe7aebe93638113cbfc6d77d5fb12d31
parent53161d81b87e7953840f8e2c7453d7fd12cb6d13
MINOR: cache: Create res.cache_hit and res.cache_name sample fetches

Res.cache_hit sample fetch returns a boolean which is true when the HTTP
response was built out of a cache. The cache's name is returned by the
res.cache_name sample_fetch.

This resolves GitHub issue #900.
doc/configuration.txt
reg-tests/cache/sample_fetches.vtc [new file with mode: 0644]
src/cache.c