Cache invalidation and CDN purge for Dynamic Media in AEM as a Cloud Service

After you update, replace, or republish a Dynamic Media asset in Adobe Experience Manager (AEM) as a Cloud Service, the Dynamic Media delivery URL can continue to display the previous asset version because of caching. The thumbnail in the Assets interface updates, but the delivered asset remains outdated until the cache expires or is manually invalidated. To fix this, create or update a CDN invalidation template, invalidate the affected assets, and verify the delivery URLs.

Description description

Environment

  • Adobe Experience Manager as a Cloud Service
  • Dynamic Media with OpenAPI capabilities
  • Adobe-managed Dynamic Media CDN

Issue/Symptoms

  • An updated asset isn’t immediately visible at its Dynamic Media delivery URL after publication.
  • The thumbnail in the Assets interface displays the updated asset, but the delivery URL continues to serve the previous version.
  • The delay continues until the cache expires or is manually invalidated.
  • No error message appears.
  • Immediate delivery of the updated asset requires manual CDN cache invalidation.

Cause

Dynamic Media delivery involves multiple cache layers. The Dynamic Media delivery URL continues to serve a cached version of the asset until the applicable cache entry expires or is manually invalidated.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Identify the Dynamic Media delivery URLs that serve outdated content, including base URLs, preset URLs, and deep-path URLs.

  2. Confirm that the updated asset is available in AEM by reviewing its details, thumbnail, and renditions in the Author environment.

  3. Invalidate the CDN cache for the affected Dynamic Media URLs:

    • In AEM as a Cloud Service, go to Tools > Assets > CDN Invalidation.
    • Enter the affected Dynamic Media delivery URLs and submit the invalidation request.
    • For more information, see Invalidate the CDN cache using Dynamic Media.
  4. Alternatively, use the CDN Purge API:

    • Obtain the required Purge API Token by following the instructions in Purging the CDN cache.
    • Send an HTTP PURGE request to the Dynamic Media delivery URL and include the required authentication header.
    • Do not use Publish hostnames. Target the Dynamic Media delivery URL.
  5. If you use a customer-managed CDN or browser caching in front of Adobe, purge or refresh those caches by using their respective controls.

  6. Open each affected Dynamic Media delivery URL in a clean browser session and verify that the updated asset appears.

recommendation-more-help
experience-cloud-kcs-help-kbarticles