]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http: start to compute the transaction's cacheability from the request
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Dec 2017 14:13:09 +0000 (15:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Dec 2017 13:43:26 +0000 (14:43 +0100)
commit83ece462b433b7b354036e33e810d1e8264d9c1f
tree52de5daaa0cd90f361f370820db63f3523d2b0b0
parentc55ddce65c6d727da3587074caea4733c6a91f96
MINOR: http: start to compute the transaction's cacheability from the request

There has always been something odd with the way the cache-control flags
are checked. Since it was made for checking for the risk of leaking cookies
only, all the processing was done in the response. Because of this it is not
possible to reuse the transaction flags correctly for use with the cache.

This patch starts to change this by moving the method check in the request
so that we know very early whether the transaction is expected to be cacheable
and that this status evolves along with checked headers. For now it's not
enough to use from the cache yet but at least it makes the flag more
consistent along the transaction processing.
src/proto_http.c