diff --git a/src/cache.c b/src/cache.c index a75c1aa8b..39d8196ac 100644 --- a/src/cache.c +++ b/src/cache.c @@ -433,7 +433,7 @@ enum act_return http_action_store_cache(struct act_rule *rule, struct proxy *px, check_response_for_cacheability(s, &s->res); - if (!(txn->flags & TX_CACHEABLE)) + if (!(txn->flags & TX_CACHEABLE) || !(txn->flags & TX_CACHE_COOK)) goto out; if ((msg->sov + msg->body_len) > (global.tune.bufsize - global.tune.maxrewrite))