How does the CDN cache things globally?

I am currently considering moving our file storage to AWS S3 with CloudFront as the CDN. One of the concerns that we have is how Cloudflare actually caches the content and where, to reduce CloudFront costs as they are quite expensive for a small website.

Say a user requests a file from America, does this cached file only stay in that single Cloudflare PoP or is it distributed across all Cloudflare PoP’s, or just a few? If the file is cached globally from a single request, this would significantly reduce our CloudFront cost as the requests are being served from Cloudflare at the edge.

Just the one single POP it was requested from. As CloudFlare does have 250 POPs your files are just served by CLoudFlares Cache on the second request from each POP.

But if you have to take this into consideration I would not recommend you moving to AWS at all. Better rent a VPS for small money and have your costs calculated and capped.

While it doesn’t make a resource cached globally, Argo tiered cache will increase cache hit rate by asking nearby POPs if they have the file before requesting it from the real origin.

The technical details on how this works (and how a new protocol/method of doing tiered caching improves it) can be found here:

But otherwise, it’s as said above, for free plans without argo, each POP has its own cache and will ask the origin if it doesn’t have the file in cache.

2 Likes

for free plans without argo, each POP has its own cache and will ask the origin if it doesn’t have the file in cache.

Hey Judge, it’s not just for the free plan, but for every plan. Be it Pro or Business or Enterprise.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.