MINOR: cache: allow caching of OPTIONS request
authorBaptiste Assmann <bedis9@gmail.com>
Wed, 7 Aug 2019 10:24:36 +0000 (12:24 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 7 Aug 2019 13:13:38 +0000 (15:13 +0200)
commit1263540fe824c74bc3c668fec3476b880d65b27c
tree19f7fdde76566d84e57ce0a4c6ca3ce9cface0c1
parentdb92a836f4ddafd972cde2b647ee5d207112b303
MINOR: cache: allow caching of OPTIONS request

Allow HAProxy to cache responses to OPTIONS HTTP requests.
This is useful in the use case of "Cross-Origin Resource Sharing" (cors)
to cache CORS responses from API servers.

Since HAProxy does not support Vary header for now, this would be only
useful for "access-control-allow-origin: *" use case.
src/cache.c