From c0f5b19bc6eaaaa828d90f7cd78fae8a2b218dfe Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 18 Sep 2025 09:04:02 +0200 Subject: [PATCH] MINOR: cache: Use the value to check too big objects When an object should be cache, to check if it is too big or not, the value is now used instead of the HTX extra field. --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index 0854b86e3..9f83c9da5 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1270,7 +1270,7 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px, /* Do not cache too big objects. */ if ((msg->flags & HTTP_MSGF_CNT_LEN) && shctx->max_obj_size > 0 && - htx->data + htx->extra > shctx->max_obj_size) + s->scb->sedesc->kip > shctx->max_obj_size) goto out; /* Only a subset of headers are supported in our Vary implementation. If