mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-14 10:20:15 +02:00
MEDIUM: cache: Change caching conditions
Do not cache responses that do not have an explicit expiration time (s-maxage or max-age Cache-Control directives or Expires header) or a validator (ETag or Last-Modified headers) anymore, as suggested in RFC 7234#3. The TX_FLAG_IGNORE flag is used instead of the TX_FLAG_CACHEABLE so as not to change the behavior of the checkcache option.
This commit is contained in:
committed by
William Lallemand
parent
91dc0c0d8f
commit
cc9bf2e5fe
@@ -59,7 +59,7 @@
|
||||
/* cacheability management, bits values 0x1000 to 0x3000 (0-3 shift 12) */
|
||||
#define TX_CACHEABLE 0x00001000 /* at least part of the response is cacheable */
|
||||
#define TX_CACHE_COOK 0x00002000 /* a cookie in the response is cacheable */
|
||||
#define TX_CACHE_IGNORE 0x00004000 /* do not retrieve object from cache */
|
||||
#define TX_CACHE_IGNORE 0x00004000 /* do not retrieve object from cache, or avoid caching response */
|
||||
#define TX_CACHE_SHIFT 12 /* bit shift */
|
||||
|
||||
#define TX_CON_WANT_TUN 0x00008000 /* Will be a tunnel (CONNECT or 101-Switching-Protocol) */
|
||||
|
||||
Reference in New Issue
Block a user