Current time: 06-26-2017, 10:06 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Slow load after settng up CloudFlare
06-23-2017, 12:14 AM
Post: #1
Slow load after settng up CloudFlare
Hi,

I have a VPS where I run some sites.

2 of the sites is set up with Cloudflare and both of them loads slower than the others without Cloudflare.

Example ;

http://bestillefisk.no/ - with cloudflare (Load is slow)
http://dennorskefiskebilen.no/ - technically the same site on the same server, but without Cloudflare (Load is ok)

I have also run 2 tests. 1 via Cloudlare and one directly to the server/sites IP.
The result showed that Cloadflare was a bit faster... Huh

Links to results;
https://www.webpagetest.org/result/170622_57_19T1/
https://www.webpagetest.org/result/170622_ST_1A5P/

Have anyone experianced similar? Any tips?
Find all posts by this user
Quote this message in a reply
Yesterday, 12:24 AM
Post: #2
RE: Slow load after settng up CloudFlare
You've answered your own question.

CloudFlare is great for fixing very slow + poorly tuned LAMP Stack sites.

For well tuned sites, avoid CloudFlare or any other tech which stands between your site + your visitors.

Like help speeding up your site? Skype me @ ID davidfavor for a quote. Be sure to include your site name in your Skype Add Contact request.
Find all posts by this user
Quote this message in a reply
Yesterday, 04:52 AM
Post: #3
RE: Slow load after settng up CloudFlare
(06-23-2017 12:14 AM)Altberger Wrote:  2 of the sites is set up with Cloudflare and both of them loads slower than the others without Cloudflare.

I have also run 2 tests. 1 via Cloudlare and one directly to the server/sites IP.
The result showed that Cloadflare was a bit faster... Huh

Links to results;
https://www.webpagetest.org/result/170622_57_19T1/
https://www.webpagetest.org/result/170622_ST_1A5P/

My experience with Cloudflare is long but generally good when setup properly. My own impatience has sometimes led me into error when initiating CF. When transferring nameservers to CF I know I'll have to wait until they resolve and CF Dashboard shows 'Active'.

'Active' can be misleading. It took an additional 12-18 hours beyond DNS resolution for CF's CDN servers to begin delivering content to WPT, and to other testing tools! So be certain that you are more patient than I am before drawing your download speed conclusions.

Time To First Byte on both tests are very long. My first action would be to find better hosting, and to make sure that 'Keep-Alive' is enabled on their server. A host that won't supply that feature at a minimum is not one you should use.

Best of luck!
Find all posts by this user
Quote this message in a reply
Today, 09:10 AM
Post: #4
RE: Slow load after settng up CloudFlare
Those two sites are quite different. One is 2MB, the other one is 1.7MB. One has 5 fonts, the other one just 4. One has more JS, more images etc. than the other one. That's enough to explain any performance difference between them.

The two tests you presented show almost exactly the same performance when you discard initial redirect from this test:
https://www.webpagetest.org/result/170622_ST_1A5P/
(substract 2230 from SpeedIndex and other appropriate values).

And now for "why" it seems slower with CF:
- this is slow http://www.webpagetest.org/result/170625...dbd2f2c77/
- and this is slow as hell http://www.webpagetest.org/result/170625...544bb02c7/

Why the first one is just slow and the second one is slow as hell? Because in the second one you make a request to JS that either doesn't exist and it triggers long running 404 handler or is processed by PHP and times out. Or it's infinite redirect loop to very slow resource. Or dozen other reasons. Either way JS blocks page rendering until it times out and hence the difference.

Actually I ran:
:~$ curl -H "Host: bestillefisk.no" "http://91.225.60.234/wp-content/plugins/woocommerce/assets/js/frontend/woocommerce.min.js?ver=2.6.14"

And it hasn't responded with either content nor error code for five minutes. At this point you can pretty much clear CF out and focus on why your server takes so much time to respond to this request.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)