Network connections are in the “stalled” state for 10-60 seconds
What is the issue you’re encountering
When Cloudflare proxy is enabled, the website is slow to load across all browsers and devices. When analysing connections using the network tab in chrome inspector, we see that connections are in the “stalled” state for 10-60 seconds, after which the connection proceeds in a timely manner.
What steps have you taken to resolve the issue?
Tested across all devices and browsers (can reproduce issue in all)
Turned off Cloudflare proxy for website A record and www CNAME (fixed the issue)
What are the steps to reproduce the issue?
Make sure Cloudflare proxy is on
Repeatedly hit the website until you get a slow request and then analyse in chrome inspector
Thank you for reaching out to us. Can you please provide us with the domain name so we can take a look at this?
Also, since Cloudflare acts as a reverse proxy, we might affect the TTFB for a site. There are a few HTTP requests that add up to the total TTFB:
Cloudflare successfully negotiating a connection with your origin.
Cloudflare sending a request on the connection.
The origin generating a response.
Cloudflare receiving the response.
Essentially, you may see a larger TTFB because we don’t send data back until after we have connected to your web server and it has responded. The difference is usually no more than a few milliseconds, but more details on Cloudflare and TTFB can be found here: Are you measuring what matters? A fresh look at Time To First Byte
If you’re seeing the TTFB is unusually high on dynamic resources (CF-Cache-Status is not HIT , see Cloudflare cache responses):
Follow the customize the cache guide to make sure that any resource that can be cached appropriately is cached. You can review the Cache Analytics on the Cloudflare Dashboard to check for cache performance and potential improvements.
Make sure your origin web server is performing well: you might need to check with your website administrator or hosting provider.