Current time: 11-28-2020, 01:31 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TTFB around 1 sec :-(
07-15-2020, 05:12 PM
Post: #1
TTFB around 1 sec :-(
Hi!!

I've been trying to improve website test speed and I get quite good results except on the "TTFB". It's around 1sec which is a lot!

Here are the latest results:
Test results

It's a Drupal site working with NGINX. I've active cache even tried to go through Cloudflare CDN but there is no way to improve the TTFB.

Could someone give some hint on how I can improve it?

Thanks in advance,
Find all posts by this user
Quote this message in a reply
07-16-2020, 04:52 AM
Post: #2
RE: TTFB around 1 sec :-(
You probably need to look into any render blocking resources. That is where I would start.
Find all posts by this user
Quote this message in a reply
07-16-2020, 05:37 AM
Post: #3
RE: TTFB around 1 sec :-(
A bad TTFB is typically caused by low powered hosting. Even using Cloudflare, if you're on hosting that isn't adequate for your website, the TTFB will be low simply because the hardware behind your host is poor.
Try moving to dedicated or cloud hosting!
Find all posts by this user
Quote this message in a reply
07-17-2020, 12:39 AM
Post: #4
RE: TTFB around 1 sec :-(
@forever,

you are correct that you are using Cloudflare. BUT, Cloudflare has not properly been set up. The page that you tested is bypassed by the cache. How can you tell? When you look at the first request, on the Response tab, you'll see a Header entry:

cf-cache-status: DYNAMIC

This means that Cloudflare is set up for your site, but this page is not cached by Cloudflare. You will not receive any of Cloudflare's benefits. You'll need to add a page rule which directs Cloudflare to serve your pages from its cache. You can start by watchhing the Cloudflare tutorial here: https://www.cloudflare.com/features-page...an%20type.
Find all posts by this user
Quote this message in a reply
07-17-2020, 08:40 PM
Post: #5
RE: TTFB around 1 sec :-(
First HTML component is influenced by HTTPS + Database tuning (if SQL is being used).

Provide your actual URL for testing, for best advice.

Better to test + know, than guess.

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
07-18-2020, 01:02 AM (This post was last modified: 07-18-2020 01:15 AM by lothisoft.)
Post: #6
RE: TTFB around 1 sec :-(
@isotropic The performance of the server where the website is actually hosted has no influence on the web site performance if a page is properly cached by Cloudflare. If Cloudflare has a copy of the webpage cached, the original server won't be called at all to serve the page.

@dfavor Same here. If Cloudflare has a cached copy of the web page then the performace of the system that orifginally created the page has no influence over the webpage served by Cloudflare. The issue of the large TTFB is caused by a) a slow webhosting server that hosts the web page and b) a misconfiguration of Cloudflare whch prevents the page to be cached by Cloudflare.

A good article reagring how to set up the free verison of cloudflare, which is identical to the paid version except you are limited to 3 page rules for the free verion, is located here: https://scatteredcode.net/building-a-fas...og-part-3/
Find all posts by this user
Quote this message in a reply
07-20-2020, 11:00 PM
Post: #7
RE: TTFB around 1 sec :-(
First of all,

Thanks everyone for your comments.

I finally find out what was preventing the cache to work as expected. It was due to a "CAPTCHA" module on the registration form. This form is present in all the pages, so no page at all was cached, causing Cloudflare to show the "DYNAMIC" cache. Configuration was correct on Cloudflare side, but Drupal was preventing to fully cache the page due to the CAPTCHA.

This are the new results
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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