Sai
Sai

Reputation: 2109

Is AWS CloudFront distribution available in all edge locations?

The S3 Bucket is located in Sydney region. This is the Origin of a CloudFront distribution I created. Will the static content be cached in all 50+ AWS Edge locations across the world?

Upvotes: 2

Views: 640

Answers (1)

bwest
bwest

Reputation: 9814

The answer is "it depends." The static content will be cached at locations where it has been requested recently. CloudFront is a pull-through cache. When an asset is requested, the closest edge location is checked. If the asset is cached there, it is sent to the requester; if it is not, the asset is pulled from the origin and put into the edge location's cache. It will stay cached until expiration. Assets that expire or are not popular enough to stay cached will be moved to regional caches. Check out the docs on how CloudFront delivers content.

Upvotes: 3

Related Questions