We have website behind cloudflare and when we do deployments (docker or pm2), cloudflare caches broken instance or not finished instance for some reason, causing website to be broken and needing purge of cache manually.
What are the best practices that would prevent or utilizing caching better?