Cloudflare raises TTFB by a huge ammount

Hi there,

We run our website on a colocation rack in Amsterdam. We have several Windows 2019 servers on a load balance, very well optimized.

We have noticed that our TTFB reported by gtmetrix, webpagespeedtest and other similar tools, is very large. More specifically:

For page A via Cloudflare: TTFB: 966ms
For page A locally on the server: Waiting (TTFB): 27ms

For page B via CloudFlare: TTFB: 964ms
For page B locally on the server: TTFB: 177ms

For page C via CloudFlare: TTFB: 356ms
For page C locally on the server: TTFB: 145ms

and the list goes on. The difference in some cases is huge !

We are on the Professional plan on Cloudflare.

Any ideas ?


If you request your site from the server it actually get served by you actually just meassure no TTFB but TTG (Time To Generate)! So you actually compare these two times with each other:

  1. How long your Server needs to build the page and would be able to serve itself internally
  2. real TTFB which (also) gets routed through Cloudflare

This does not make any sense and yes it is very well known that Cloudflare increases the TTFB by about 10ms when proxying requests which have to be handled by your origin server. Cloudflare actually speeds up the PageLoad and SiteLoad and all your static assets. EVERY proxy service will actually slow down TTFB by sime ms and Cloudflare actually is doing this very good by just adding (for me) about 10ms to the TTFB.

The difference is huge as you measure two completely different things. You compare “internal TTFB” (TTG) with real TTFB.


written down informations by yourself do not count and noone will really look into this unless you can provide “real” benchmarks which proves this. This actually is very easy by console with curl or by testing with WebPageTest, but you would have to provide us with both:

  1. test while beeing proxied :orange:
  2. test while bypassing Cloudflare :grey:

This is most likely to be related with:

We are waiting for some information as this is affecting a lot of customers for sure.

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