Caching and re-trying the requests

If all the pools are detected to be unhealthy in Cloudflare LB, can Cloudflare cache the requests for some period of time? To retry the same when the pool is detected to be healthy again.

If yes, which utility can be used for the same?

You can use Always Online to serve a limited cached version of your pages, but a better way would be to utilise cache headers at your origin to instruct Cloudflare to serve stale cached content when an error is countered using the stale-if-error cache-control directive.

To understand more about the way this directive works, take a read here:

https://support.cloudflare.com/hc/en-us/articles/115003206852-Understanding-Origin-Cache-Control

Thanks @simon.

However, these are for just GET calls. Right?
What about POST/PUT calls?

We do not cache anything other than GET requests.

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