Clear eCDN Cache
B2C Commerce stores static storefront content in eCDN cache or the web tier static content cache.
All content cached by eCDN is served using a unique URL. Cache purging a CDN on top of URLs from B2C Commerce isnβt necessary, because the system updates the URL when uploading new content. Aside from replicating environments to clear the cache of any static content, no action is required.
When working with eCDN cache, keep the following in mind:
- eCDN uses the Cache-Control header to persist a file in cache until that TTL expires. After the cache header expires, eCDN retrieves the new resource. eCDN caches based on the value set by the cache headers. If these headers arenβt set, the default value of 30 days is enforced.
-
The web adapter configures web pages using static assets from both eCDN and web tier cache sources. Regardless of the cache location, web tier or eCDN, each static content asset on your storefront is assigned a fingerprint value. For example, consider the following URL:
https://www.samplecustomer.com/dis/dw/image/v2/XXXX_PRD/on/demandware.static/-/Sites-customer-main-product/default/dwabb3a337/images/hi-res/shoes.jpg?sw=200=200=fitm=png>
.The value
dwabb3a337
is the asset fingerprint. The fingerprint provides a unique identifier for the asset. - Updates to static cache occur at intervals you set. If necessary, you can update an asset held in static cache before the cache interval expiration. The process doesnβt require cache to be cleared, and can be completed without requesting a support ticket.
To clear eCDN cache:
If the updated asset doesnβt appear in your browser after updating content, you can manually invalidate the Application Tier cache. Though itβs rare, the asset not appearing means that something went wrong with the cache clearing process.
- Clear the cache:
- To clear the Business Manager Site cache, navigate to Invalidate where applicable. , and click
- To invalidate the cache for a specific site, navigate to Invalidate where applicable. and click
- Refresh the site in your browser, and confirm that the updated asset appears as expected.