]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cache/htx: Make maxage calculation HTX aware
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 15 Jul 2019 18:49:46 +0000 (20:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Jul 2019 07:18:27 +0000 (09:18 +0200)
commit5f2c49f5eedb55fd757c2e4812df840bcf2dd9e9
tree25afa9d422cd6e81575452fe01c2ac9c5088c293
parent7b889cb3875d396e8a100f732bb3f5589fe1917f
BUG/MINOR: cache/htx: Make maxage calculation HTX aware

The function http_calc_maxage() was not updated to be HTX aware. So the header
"Cache-Control" on the response was never parsed to find "max-age" or "s-maxage"
values.

This patch must be backported to 2.0 and 1.9.
src/cache.c