X-Magento-Tags contains identifiers from removed blocks #9779
Labels
bug report
Issue: Cannot Reproduce
Cannot reproduce the issue on the latest `2.4-develop` branch
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Progress: needs update
Following the investigation and fix of #5897, I noticed that
Magento\PageCache\Model\Layout\LayoutPlugin::afterGetOutput
sets tags for the related products (i.e.:cat_p_123
), even if the related products block is not rendered.Preconditions
Steps to reproduce
varnishlog
and navigate to the configurable product ('Product 3' or 'Product 4' as the bug report above);Expected result
X-Magento-Tags
will not containcat_p_123
(given that 123 is the ID of the related product);Actual result
X-Magento-Tags
containscat_p_123
(given that 123 is the ID of the related product);The text was updated successfully, but these errors were encountered: