]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: cache: Change caching conditions
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 12 Nov 2020 10:14:41 +0000 (11:14 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 12 Nov 2020 10:22:05 +0000 (11:22 +0100)
commitcc9bf2e5fe1fe6f15de9e78b6aaea2cd6be5ca4f
treeaa91c7e0433dbcd2a57c08007d90e1894c90648c
parent91dc0c0d8fdc2fb091b49699ebb323d01aa1d9f6
MEDIUM: cache: Change caching conditions

Do not cache responses that do not have an explicit expiration time
(s-maxage or max-age Cache-Control directives or Expires header) or a
validator (ETag or Last-Modified headers) anymore, as suggested in
RFC 7234#3.
The TX_FLAG_IGNORE flag is used instead of the TX_FLAG_CACHEABLE so as
not to change the behavior of the checkcache option.
include/haproxy/http_ana-t.h
reg-tests/cache/basic.vtc
reg-tests/cache/caching_rules.vtc [new file with mode: 0644]
reg-tests/cache/if-modified-since.vtc
reg-tests/cache/sample_fetches.vtc
src/cache.c
src/http_ana.c