CDN purge race condition with publish activation
In AEM as a Cloud Service with Adobe-managed Akamai, I’m triggering a CDN purge for specific paths right after activating content to publish.
Occasionally, users get 404s or stale content for a few seconds to minutes, which suggests a race condition where the CDN purge happens before the newly published content is fully available on all publish instances.
What’s the best practice to ensure that a purge request to the CDN happens only after all publish instances are serving the updated content?