Commerce / B2C Commerce
SCAPI Shopper Stores API — custom cache TTL set via modifyGETResponse hook not consistently applied; default TTL served on some nodes
Summary
When using the Shopper Stores API with a modifyGETResponse hook to set a custom cache time-to-live (TTL) via dw.system.Response#setExpires(), the custom TTL is not consistently honored across all caching nodes. https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html
Some requests return the expected updated store attribute values with the sfdc_customization response header present, confirming the hook executed. Other requests return stale data with the sfdc_customization header absent, indicating the hook did not execute when the cached response was served from those nodes.
This results in intermittent, inconsistent responses from the API endpoint when custom store attributes (such as status flags) are updated. Merchants relying on near-real-time store availability data may serve stale status to shoppers within the custom TTL window.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Deployed
Nov 30, 2026