From: Remi Tricot-Le Breton Date: Thu, 3 Dec 2020 17:19:32 +0000 (+0100) Subject: MINOR: cache: Consider invalid Age values as stale X-Git-Tag: v2.4-dev3~98 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=51058d64a68d147f8396016c1917e64f5d3e5c72;p=haproxy.git MINOR: cache: Consider invalid Age values as stale Do not store responses that have an invalid age header (non numerical, negative ...). --- diff --git a/src/cache.c b/src/cache.c index e0560e57e..df6bd3352 100644 --- a/src/cache.c +++ b/src/cache.c @@ -897,6 +897,8 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px, if (unlikely(object->age > true_maxage)) goto out; } + else + goto out; http_remove_header(htx, &ctx); }