We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49bc150 commit 406c6dcCopy full SHA for 406c6dc
app/code/Magento/Swatches/Controller/Ajax/Media.php
@@ -64,10 +64,11 @@ public function execute()
64
$response = $this->getResponse();
65
66
if ($productId = (int)$this->getRequest()->getParam('product_id')) {
67
+ $product = $this->productModelFactory->create()->load($productId);
68
$productMedia = $this->swatchHelper->getProductMediaGallery(
- $this->productModelFactory->create()->load($productId)
69
+ $product
70
);
- $resultJson->setHeader('X-Magento-Tags', 'catalog_product_' . $productId);
71
+ $resultJson->setHeader('X-Magento-Tags', implode(',', $product->getIdentities()));
72
73
$response->setPublicHeaders($this->config->getTtl());
74
}
0 commit comments