]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "MINOR: cache: allow caching of OPTIONS request"
authorWilly Tarreau <w@1wt.eu>
Tue, 1 Oct 2019 15:59:17 +0000 (17:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 1 Oct 2019 15:59:17 +0000 (17:59 +0200)
commit6905d18495b963324356c52c1020e77f4d4e8f3f
tree600c0ef4e20c6cf1a971dfe5b312b8c393addb1c
parent4c52e4b5605437ee55de2679b5031254f02e7929
Revert "MINOR: cache: allow caching of OPTIONS request"

This reverts commit 1263540fe824c74bc3c668fec3476b880d65b27c.

As discussed in issues #214 and #251, this is not the correct way to
cache CORS responses, since it relies on hacking the cache to cache
the OPTIONS method which is explicitly non-cacheable and for which
we cannot rely on any standard caching semantics (cache headers etc
are not expected there). Let's roll this back for now and keep that
for a more reliable and flexible CORS-specific solution later.
src/cache.c