Proxying requests through Cloudflare increases the latency


My website is -

Right now, I am only using Cloudflare for serving the DNS information for my website. I also want to proxy the requests via Cloudflare (for security reasons).

But when I make the switch, I see a sharp increase in the TTFB of my website from 250 - 400 ms to 600 - 800 ms.

What can I do to make it fast ?

My app servers are located in Bangalore, India.

A proxy will naturally always increase latency. There is not much you can do, save for disabling the proxy, which you seem to have done for now.

For me however, there is not much difference whether I access your site directly or via Cloudflare. The site takes initially about two seconds to load, but then loads additional resources and finishes in both cases after about eight seconds. Might be your routing in this case.
Can you post a screenshot of

Yes, I think the difference is most probably due to routing as I am in India and all the resources are located in India as well.

I shifted to proxy and tried the tool you suggested, it says - “Likely not a Cloudflare website, or not proxied”, even after waiting for a while and checking the DNS (it is not our server). Can you help me out ?

Also, the TTFB of the website rose to 1200-1300 ms this time.

It worked this time.

The point was to have a screenshot of the page.

Anyhow, your site seems to be routed through Singapore, which will explain why you notice an increase in latency. This is addressed at Peering - Why don't I reach the closest datacenter to me?.

1 Like

Sorry, here’s what you asked.

And I’ll have a look at the article, thanks.

Yes, your ISP seem to route most Cloudflare addresses to Singapore instead of the Indian locations. Only a few (even among the Enterprise plans) seem to go to India. Thats something that is mostly within your ISP’s control, please see aforementioned article for that.

1 Like

Sure, I got a better understanding of what is happening now.

I think I would have to keep it direct as of now. Thanks for the help, though.

This topic was automatically closed after 30 days. New replies are no longer allowed.