How long is website data cached for at a CDN node?

The length of time website data is cached at a CDN (Content Delivery Network) node depends on the caching rules you specify for your website. The cache time is not a universal setting, but depends on parameters like TTL ( Time To Live ) and HTTP cache headers.

What is CDN cache?

A CDN is a network of servers around the world that stores copies of your website content (images, CSS, javascript and sometimes even pages). When a user visits your website, the CDN delivers content from the nearest node instead of your origin server, resulting in a faster, more efficient experience.

How long is data cached?

CDN cache lifespan will be based on configuration:

The actual length is determined by:

What is Time to Live i.e. TTL

TTL is the amount of time content is kept in the cache at a CDN node before it is refreshed from the origin server.

When you’re at home, you’re at home.

TTL = 3600 seconds → 1 hour cache
TTL = 86400 seconds Cache for 24 hours

When the TTL expires, the CDN fetches a new copy from the origin server.

Can I proactively refresh cached data?

Yes, you can refresh CDN content before the TTL expires with:

What Is a Cache Good For

CDN caching does help:

Conclusion

The CDN node caches website data according to the TTL and cache rules that are configured on your server or CDN. Depending on the type of content and caching policy, the TTL can vary from a few minutes to a few days. Good cache management = fast performance and up-to-date content.