From 51058d64a68d147f8396016c1917e64f5d3e5c72 Mon Sep 17 00:00:00 2001 From: Remi Tricot-Le Breton Date: Thu, 3 Dec 2020 18:19:32 +0100 Subject: [PATCH] MINOR: cache: Consider invalid Age values as stale Do not store responses that have an invalid age header (non numerical, negative ...). --- src/cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cache.c b/src/cache.c index e0560e5..df6bd33 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); } -- 1.7.10.4