MEDIUM: cache: Store the ETag information in the cache_entry
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 22 Oct 2020 08:40:04 +0000 (10:40 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 22 Oct 2020 14:10:20 +0000 (16:10 +0200)
commitdbb65b5a7a12ef637981f02150e26d821514870c
treeb99438a641529c10ec02a686cf83deaf376725e7
parentbcced09b91c510685b8bd6cb264a5d49c6fd472d
MEDIUM: cache: Store the ETag information in the cache_entry

When sent by a server for a given resource, the ETag header is
stored in the coresponding cache entry (as any other header). So in
order to perform future ETag comparisons (for subsequent conditional
HTTP requests), we keep the length of the ETag and its offset
relative to the start of the cache_entry.
If no ETag header exists, the length and offset are zero.
src/cache.c