Flush content from Amazon CloudFront CDN

How do we invalidate the cache in AWS CloudFront CDN when publishing content?

Environment

AEM 6.0-6.3

Steps

There is nothing out-of-the-box in AEM that does this. However, a custom solution could be developed:

  1. Implement a custom replication agent. See the steps here.
  2. To do the actual cache invalidation in the TransportHandler code, use the CloudFront API POST invalidation as documented here.

Alternatively, instead of creating a flush agent, the best practice is simply to leverage the "Cache-Control: max-age=..."  header to control the TTL of files in the CloudFront CDN.  This works instead of implementing a replication agent to invalidate the CloudFront cache. See this documentation.

 Adobe

Dapatkan bantuan lebih cepat dan lebih mudah

Pengguna baru?

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online