]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: cache: Add "Age" header.
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 26 Oct 2018 12:29:22 +0000 (14:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 18:06:59 +0000 (19:06 +0100)
commite7a770ce80767f32356a02c1a013e14e0b130a6d
treea1ea6d179823fec207bc9662775c3736e7a92cf3
parentdeeaa593f3e1975d776bb41c7d1dae4949b16e54
MINOR: cache: Add "Age" header.

This patch makes the cache capable of adding an "Age" header as defined by
rfc7234.

During the storage of new HTTP objects we memorize ->eoh value and
the value of the "Age" header coming from the origin server.
These information may then be reused to return the cached HTTP objects
with a new "Age" header.

May be backported to 1.8.
src/cache.c