]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cache: Disable the cache if any compression filter precedes it
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Jan 2019 15:12:07 +0000 (16:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Jan 2019 10:32:23 +0000 (11:32 +0100)
commit839791af0dd77dabcb24f70943111cd5fcb8696b
treebe55685a7eee5dd1396d8cc0126496bdb0d6dcd8
parentff17b183fe06867b37e9dba286bfa8e69e58f614
BUG/MINOR: cache: Disable the cache if any compression filter precedes it

We need to check if any compression filter precedes the cache filter. This is
only possible when the compression is configured in the frontend while the cache
filter is configured on the backend (via a cache-store action or
explicitly). This case cannot be detected during HAProxy startup. So in such
cases, the cache is disabled.

The patch must be backported to 1.9.
src/cache.c