Search code examples
amazon-web-servicescachingamazon-cloudfrontcdn

Do Cloudfront Regional Edge Caches Synchronise Objects?


AWS is fairly clear about how objects are delivered through CloudFront as illustrated (and explained) in their docs.

Furthermore, I understand that Edge Locations do NOT synchronise data between each edge node (I can't remember where I read this but my tests have confirmed this is the case). However, what is not clear is whether CloudFront will synchronise cached data between Regional Edge Locations. Can anyone shed any further light on this?

For reference: AWS CloudFront


Solution

  • Your assumptions are correct; CloudFront will not replicate your cache throughout regional edge nodes.

    However, if you are looking for something to act as a cache in front of your origin (e.g. to cache Lambda Edge responses), you can enable Origin Shield.

    The benefits of Origin Shield are:

    • Better cache hit ratio
    • Reduced origin load
    • Better network performance

    See here: Origin Shield