mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
MINOR: cache: Consider invalid Age values as stale
Do not store responses that have an invalid age header (non numerical, negative ...).
This commit is contained in:
parent
72cffaf440
commit
51058d64a6
@ -897,6 +897,8 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px,
|
|||||||
if (unlikely(object->age > true_maxage))
|
if (unlikely(object->age > true_maxage))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
goto out;
|
||||||
http_remove_header(htx, &ctx);
|
http_remove_header(htx, &ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user