Very slow when CDN fetching origin server content

Hi All,

I had a HK server and hosting two domains (A and B) with Cloudflare, but today A is very slow, so I compare with B using same php and following is result:

A domain point to Cloudflare server 104.24.111.43
B domain point to Cloudflare server 104.28.30.209

php file (same server and same file)

Domain A
Waiting (TTFB): 2.07s

Domain B
Waiting (TTFB): 351ms

The domain A is much slower than B, so I check with cdn-cgi/trace

cdn-cgi/trace

Domain A
Waiting (TTFB): 49ms

ip=113.255.227.241
ts=1577705947.621
visit_scheme=https
colo=SIN
http=http/2
loc=HK
tls=TLSv1.3
sni=plaintext
warp=off

Domain B
Waiting (TTFB): 60ms

ip=113.255.227.241
ts=1577705948.213
visit_scheme=https
colo=NRT
http=http/2
loc=HK
tls=TLSv1.3
sni=plaintext
warp=off

You can see A is faster than B, because colo SIN is near than NRT, it make sense.

But, why php (dynamic content) is much slower?

anybody can tell me why? and how to fix this? or any Cloudflare network problem now?

Thanks so much and Happy new year!

It’s also helpful to time them both directly from the server.
curl -svo /dev/null https://example.com --connect-to ::12.34.56.78 (Replace this with your server’s IP address)

I also suggest you do a more global timing test, such as https://tools.keycdn.com/performance

If you post the domain names, we can take a look and offer more suggestions.

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