Does always online serve stale cached content incase the server is unreachable?

Or does it only serve content from IA
4 Replies
Chaika
Chaika5mo ago
serves cache
When your origin is unreachable, Always Online checks Cloudflare’s cache for a stale or expired version of your website. If a version does not exist, Cloudflare goes to the Internet Archive to fetch and serve static portions of your website.
https://developers.cloudflare.com/cache/troubleshooting/always-online/
Paradox_77
Paradox_77OP5mo ago
okay, i read this but the wording wasnt clear for me thanks for clarifying 👍 So is there any other better method of telling cloudflare to server stale cache? i dont really need archive.org to cache these pages i just want stale cache to be served
Chaika
Chaika5mo ago
Cloudflare has support for serve stale while revalidate but it's a bit curious: https://developers.cloudflare.com/cache/concepts/revalidation/#example-1 The first request goes to the origin and waits on the new resource, and all other requests get served a stale copy from cache They said they were working on proper async stale while revalidate in the later half of 2024
Cloudflare Docs
Revalidation and request collapsing | Cloudflare Cache (CDN) docs
Revalidation is a caching mechanism that involves checking the freshness of cached data before serving it to a client or user. If a cached object is no longer fresh and Cloudflare receives a request for it, a request is made to the origin to revalidate the object in the Cloudflare cache.
Paradox_77
Paradox_77OP5mo ago
ah makes sense, ill look into this thanks for your help
Want results from more Discord servers?
Add your server