commit | 72cffaf4405682d76e52dddfce57137b4a9cd395 | [log] [tgz] |
---|---|---|
author | Remi Tricot-Le Breton <rlebreton@haproxy.com> | Thu Dec 03 18:19:31 2020 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Fri Dec 04 10:21:56 2020 +0100 |
tree | 9f0ed623f010de4d9ca8f54d74f67ddd57ba323c | |
parent | fcea374fdfbba5af12349905dd45ae812a36284a [diff] |
MEDIUM: cache: Remove cache entry in case of POST on the same resource In case of successful unsafe method on a stored resource, the cached entry must be invalidated (see RFC7234#4.4). A "non-error response" is one with a 2xx (Successful) or 3xx (Redirection) status code. This implies that the primary hash must now be calculated on requests that have an unsafe method (POST or PUT for instance) so that we can disable the corresponding entries when we process the response.