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
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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.


X-Magento-Vary cookie is set incorrectly for logged-in customers that belong to the same customer segment, causing improper caching for some pages.


Adobe Commerce Inventory Management (MSI) modules are installed and enabled.

Steps to reproduce:

  1. Configure Varnish or Fastly cache.
  2. Create a new customer segment and assign it to the Registered customers.
  3. Create two customers, e.g., customer1 and customer2.
  4. Clear the cache.
  5. Sign in as customer1 and go to the home page.
  6. Open an incognito page on your browser.
  7. Go to any page other than the home page.
  8. Log in as customer2.
  9. Go to the home page.
  10. 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:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.