[PaaS only]{class="badge informative" title="Applies to Adobe Commerce on Cloud projects (Adobe-managed PaaS infrastructure) and on-premises projects only."}

ACSD-68892: Inconsistent Fastly caching behavior for cacheable pages

The ACSD-68892 patch fixes the issue where cacheable pages are not properly stored or served from the Fastly cache, resulting in inconsistent caching behavior and reduced performance. This patch is available when the Quality Patches Tool (QPT) 1.1.77 is installed. The patch ID is ACSD-68892. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.8-p2

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.8 - 2.4.8-p3
NOTE
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.

Issue

Cacheable pages are not properly stored or served from the Fastly cache, resulting in inconsistent caching behavior and reduced performance.

Steps to reproduce:

  1. Enable the Fastly cache.
  2. Create a new website/store/store view.
  3. Add the secondary website code to index.php:
$_SERVER['MAGE_RUN_TYPE'] = 'website';
$_SERVER['MAGE_RUN_CODE'] = 'web2';
  1. Check cache control header using curl:
curl -Is https://localhost/m247/pub/ | grep cache-control

Expected results:

Cacheable pages are cached in Fastly.

Actual results:

Cacheable pages are not cached in Fastly, the max-age=0 returned in the header.

curl -Is https://localhost/m24develop/pub/ |grep cache-control
cache-control: max-age=0, must-revalidate, no-cache, no-store

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:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3