Cache Rules

I would like to know if anyone here can help me design a Cloudflare architecture to address the following use case: Without enabling the Always Online feature. When a 522 error or any other server error is returned, serve a cached page to the client. If nothing is available in the cache, serve a custom fallback page.
1 Reply
Chaika
Chaika3w ago
hmm, what exactly is your use case/what you're trying to do? Always Online is either on or off, if you have it off, it won't crawl your pages to have anything in cache. It ignores Cache Rules, if you have bypass for example it'd work anyway, and isn't configurable otherwise outside of that. If you just enable it though, with Pro or higher you can set Custom error Pages: https://developers.cloudflare.com/support/more-dashboard-apps/cloudflare-custom-pages/configuring-custom-pages-error-and-challenge/
Cloudflare Docs
Configuring Custom Pages (Error and Challenge) | Cloudflare Support...
Cloudflare uses a wide range of error codes to identify issues in handling request traffic. By default, these error pages mention Cloudflare; however, custom error pages help you provide a consistent brand experience for your users.
Want results from more Discord servers?
Add your server