ACSD-52906: Resolving X-Magento-Vary cookie issue for logged-in customers
The ACSD-52906 patch fixes the issue where the X-Magento-Vary cookie is set incorrectly for logged-in customers. This patch is available when the Quality Patches Tool (QPT) 1.1.36 is installed. The patch ID is ACSD-52906. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.4-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.3.7 - 2.4.6-p2
magento/quality-patches
package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
X-Magento-Vary cookie is set incorrectly for logged-in customers that belong to the same customer segment, causing improper caching for some pages.
Prerequisites:
Adobe Commerce Inventory Management (MSI) modules are installed and enabled.
Steps to reproduce:
- Configure Varnish or Fastly cache.
- Create a new customer segment and assign it to the Registered customers.
- Create two customers, e.g., customer1 and customer2.
- Clear the cache.
- Sign in as customer1 and go to the home page.
- Open an incognito page on your browser.
- Go to any page other than the home page.
- Log in as customer2.
- Go to the home page.
- Check if the page is cached in the browser dev console.
Expected results:
The page is retrieved from the cache.
Actual results:
The page is not cached.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.