Very Slow Wait Time to Initial Byte only with Cloudflare

ssl
caching
wordpress
#1

Our website is extremely slow to return first byte, but only when going through Cloudflare. Sometimes I’ll sit and watch the website wait without loading anything for 5+ seconds in my browser. Sometimes it appears instantly. When I disable Cloudflare, it always appears instantly.

I followed the help doc “My website is slow or having performance issues”

Domain: https://eclode.bio
Origin IP: 160.153.57.197
This is an economy GoDaddy server. If I manually disable Cloudflare, the page loads are always instant.

With cloudflare:
http://webpagetest.org/result/190320_XM_f39f8e6150c57c6303c47a9d8ac3466b/

Without cloudflare:
http://webpagetest.org/result/190321_4C_7fc8e6fbb1e019cc20d0f51a1682735d/

Traceroute from my Mac:

Traceroute has started…

traceroute: Warning: eclode.bio has multiple addresses; using 104.27.132.233
traceroute to eclode.bio (104.27.132.233), 64 hops max, 72 byte packets
 1  10.33.104.1 (10.33.104.1)  1.727 ms  1.511 ms  1.063 ms
 2  157.130.196.213 (157.130.196.213)  1.925 ms  1.970 ms  2.436 ms
 3  0.ae1.br1.sjc7.alter.net (140.222.225.235)  4.791 ms  4.694 ms  4.661 ms
 4  sjo-b21-link.telia.net (80.239.194.30)  5.166 ms  5.649 ms  5.915 ms
 5  cloudflare-ic-328258-sjo-b21.c.telia.net (62.115.61.151)  6.649 ms  5.754 ms  5.816 ms
 6  104.27.132.233 (104.27.132.233)  5.342 ms  4.857 ms  5.054 ms

I enabled WordPress CDN integration via the WP Fastest Cache plugin: https://www.wpfastestcache.com/tutorial/wp-fastest-cache-cloudflare/#cloudflare-api-key
It had no effect on the results.

It makes no sense that this slow down only occurs when going through Cloudflare. I’d like to go through Cloudflare because it made https:// easy to setup.

#2

It fully loaded in under 3.4 seconds in my browser and that’s 5 seconds faster than your without test.
When I tested it *webpagetest, I got load 2.186s first byte 0.802s
http://webpagetest.org/result/190321_BA_e46f8267cd3fbd280b81c5a03ddc8053/

*The site is over 4MB lower that by resizing and compressing the background images, you’ll probably knock 1+ off.

#3

I wonder why you got those load times.

Your choice of browser and location without Cloudflare: http://webpagetest.org/result/190321_5S_8a9ba1de5faa85c7a944ab7370066dbe/

With Cloudflare:
http://webpagetest.org/result/190321_NW_6f87b45171dc3193b8f0f012ba9a7c4b/

Why does first byte go from 0.25s to 1 (4x). And load time from 7s to 8.4s (+1.4s)? I don’t expect Cloudflare to be slower.

#4

On my PC with cleared cache, and different browser, I just got 800ms and then 9.39sec. Probably GoDaddy. Transfered a lot of Shared hosting accounts from there for the same reason.

and again at a different webpagetest location
First run 1.764s 0.749s
Second run 1.513s 0.862s
http://webpagetest.org/result/190321_3T_365800b1531a56848973413ec92147c3/

1 Like
#5

I second @Withheld’s observation about the overall loading time. For me, the site generally loads in both cases, direct and proxied, in about three seconds.

As far as your two tests are concerned, please keep in mind your proxied test ran over HTTPS whereas your direct test used HTTP and it does seem your site itself responds slightly slower on HTTPS.

I also had one direct request which took about six seconds

Some of the resources seem to take quite some time. In this context I’d second @Withheld’s judgement again, that this is probably an issue with Godaddy.

1 Like
closed #6

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