Description
Preconditions and environment
- Magento 2.4.7-p5
- Multi-Store Setup
- Varnish 7.6 / Magento 2 Provided VCL
- For Multi-Stores, setup using - SetEnvIf Host sub.domain.tld* MAGE_RUN_CODE=xxx | SetEnvIf Host sub.domain.tld* MAGE_RUN_TYPE=website
Steps to reproduce
#curl -I https://sub.domain.tld (Multi-Store)
x-magento-cache-debug: UNCACHEABLE - Always
#curl -I https://domain.tld (Main)
x-magento-cache-debug: HIT
Expected result
#curl -I https://sub.domain.tld (Multi-Store)
x-magento-cache-debug: HIT or MISS - accordingly
Actual result
Any Multi-Store (setup with SetEnvIf) always produce "x-magento-cache-debug: UNCACHEABLE". This can be a subdomain or different domain other than the main domain.
Additional information
MAIN.cache_hit 66308 3.00 4.02 3.49 3.49 3.49
MAIN.cache_hit_grace 33 0.00 0.00 0.00 0.00 0.00
MAIN.cache_hitmiss 266315 9.99 16.14 13.28 13.28 13.28
MAIN.cache_miss 594774 22.98 36.04 29.15 29.15 29.15
MAIN.beresp_uncacheable 553526 23.98 33.54 25.66 25.66 25.66
without cache, browser will first return "x-magento-cache-debug: UNCACHEABLE" when refreshed, it will return HIT or MISS accordingly.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.