Very slow TTFB

hello,

our website https://worldrecipes.eu has very bad TTFB. According to google analytics and gtmetrix it’s around 400 ms.

So Google Search Console marked all our pages red as being slow because this number has to be lower. We don’t have any other issues.

So what we did:
Added full html caching
Added leverage browsing cache
Turned on Argo
Turned on Rocket launcher
Made js fully one liner
nginx configs tries to cache everything that is cachable
webp is in use

TTFB didn’t improve at all. Please help.

Where is the website hosted underneath CloudFlare?

Lithuania, 95% of the visitors are from Lithuania.

Go to https://cloudflare-test.judge.sh/ and enter your domain.

Tell me, what location does it return?

Just analysed your site and I’m 100% sure your .html is not cached!
Your Server itself is responsing slow. Thats the Problem.

For me it does have a TTFB of 250-400ms also.

Pls run this commands in a console and post the result here:

  1. ByPass CloudFlare
    curl -ko /dev/null --resolve worldrecipes.eu:443:[###IP###] -H ‘Cache-Control: no-cache’ -s -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n"
  2. With CloudFlare
    curl -ko /dev/null --resolve worldrecipes.eu:443 -H ‘Cache-Control: no-cache’ -s -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n"

Pls replace:
[###IP###] = your origin IP (in first Command)

This will show whether the problem is related to CLoudFlare or not

1 Like

We are getting - Connect: 0.000000 TTFB: 0.000000 Total time: 0.000000 on both ?

And in Page rules we cached everything with worldrecipes.eu/*

https://cloudflare-test.judge.sh/

worldrecipes.eu

HAM

Hamburg Airport

IPv4

http/2

First ping: 1531

Second ping: 31

Somehow this cant be.

I can just test with cloudflare but this is my result:

Connect: 0.000000 TTFB: 0.000000 Total time: 0.028362

Also your caching rule for worldrecipes.eu/* does not work.
If it would work your cf-cache-status would be:

HIT

not

BYPASS

Please have a look at your PageRule and maybe adjust it or post all of your rules so we can help you

Sorry misstyped the commands the right ones are these:

  1. With CloudFlare
    curl -o /dev/null -H 'Cache-Control: no-cache' -s -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" https://worldrecipes.eu

  2. Without CloudFlare
    curl -o /dev/null -H 'Cache-Control: no-cache' -s -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" https://worldrecipes.eu --resolve 'worldrecipes.eu:443:[###IP###]'

Pls test again and post both, with and without CF

With CF: Connect: 0.037320 TTFB: 0.444202 Total time: 0.509894
without CF: Connect: 0.033858 TTFB: 0.000000 Total time: 0.072629![page-rules|690x437]

0,43 difference with CF :frowning:

(upload://v4Dv3tWlsQI16h0VcMJKGJJyKTL.png)

And these are the page rules

Something is wrong there!

Connect + TTFB = Total (approximately)
TTFB of 0 is impossible btw.

Normally it should work… may you try putting the first (cache everything) rule to the End?
But then it should deliver the html statically.

Also you should set your generated HTML as cachable on your server

Connect: 0.030322 TTFB: 0.386279 Total time: 0.449554

Updated it was a bad query.

Still better without cloudflare.

HTML is cachable on our server.

Now (in the last 15min) things changed and HTML gets delivered as cf-cache-status: DYNAMIC

But: still not cached!

Cached would be: cf-cache-status: HIT

#EDIT now its cf-cache-status: BYPASS again

Yes its faster then with CF, it always is when it comes to TTFB!
Cuz you have to go one more short-stop more then without.

But this shows your TTFB is 386ms!! (at your origin Server) which is 100% not statically or cached.

Example at my Page (Dynamic generated HTML)

TTFB of 37ms (with CloudFlare)

Means: your Problem is 100% related to your Server/Setup/Configuration, but not to CloudFlare

So we cached the html now, changing the page rules. The TTFB improved.

Do you have any other tips how to improve the speed if you are using Header bidding ads (they are all lazy loaded) but still…

Well if you lazyload the do not have any impact on the TTFB.
So this is not related to the TTFB (to this topic)

Btw tested your site again and …damn yes it has improved by a lot!
Anyway there are some other issues but pls do not expect technical SEO helo here in the CloudFlare forum.

This issue should be closed and the right answer marked as solution as you TTFB issue is solved

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