Since the new GTMetrix update, I’m continually getting the [Reduce initial server response time] error. I understand there is a lot of other optimization I can go trough, but I don’t struggle with them but with this problem exactly. Can someone please give me a hint how can I optimize the speed for “ Reduce initial server response time ”? Thanks!
The top search result for TTFB using the icon above is HIGH TTFB Siteground + Cloudfare … if that answer isn’t useful you might need to hire a professional to resolve it. I’m not sure what @eva2000 charges per hour (I imagine it’s in the $350US per hour range at least) but I’d hire him if I needed optimization beyond the advice he provides for free.
Thanks for the suggestion, but it’s funny. If I remove Cloudflare, I get way faster TTFB (a 50% improvement, to be exact). Since I’m using the free plan, I’m asking for a free solution. Otherwise, I’d pay for a decent CDN provider, and that would cost much less than $350 per 5 years. The moment I remove Cloudflare, I receive a 50% improvement in the TTFB. I read the topic you suggested, and I’m interested in reading more useful answers.
TTFB speed is relative so if your origin web server is located further away from test location then TTFB is higher and vice versa.
This is due to Cloudflare not caching HTML content by default (see below). So for optimal TTFB speed, you want your origin real web server to be hosted in a location closest to your majority traffic visitors and then put Cloudflare in front. For instance, my forums has 50% US visitors 40% Asian visitors and 10% Oceania. So my optimal geographic location for my origin is US West Coast as it sits in middle of US, Europe and Asian so equal round trip times for majority of visitors.
Cloudflare cache certain static content https://support.cloudflare.com/hc/en-us/articles/200172516-Which-file-extensions-does-Cloudflare-cache-for-static-content- but not dynamic/static generated html itself by default (which is what WPT TTFB is testing for). But you can tell Cloudflare to cache dynamic/static generated html content to some extent depending on Cloudflare plan you’re on via cache everything page rule but have to be careful to only do this for static html content and not dynamic html content (otherwise you would cache private logged in user content).
https://blog.Cloudflare.com/caching-anonymous-page-views/ on CF Business plan or CF Workers custom caching you can properly distinguish between logged in users versus guests so tell Cloudflare via bypass cache on cookie page rules to only cache for guests the dynamic/static generated html content and bypass cache for logged in users. The same can be done if you’re using Cloudflare’s Wordpress plugin with Cloudflare Automatic Platform Optimization (APO) caching.
To fully optimise you need to optimize 3 segments.
segment 1 - connection between visitor and CF edge server i.e. CDN cache, WAF, Firewall, Page Rules, Mirage, Polish webP, HTTP/2, HTTP/3, CF Workers (i.e. custom/advanced caching) etc
segment 2 - connection between CF edge server and your origin i.e. Argo, Railgun & Full SSL/ECDSA SSL certificates, pre-compressed asset served from origin
segment 3 - your origin server’s performance/optimisations i.e. web server, PHP, MySQL server optimisations and server hardware specs.
Cloudflare can only help for segments 1 & 2 for cached guest/non-logged based visitors will easily scale. Now for Cloudflare CDN cache miss/bypass and logged in user for web apps like forums/wordpress, performance will be determined by segment 3. Which is the default with Cloudflare as dynamically generated HTML pages aren’t cached by default so cache miss means, whatever performance you have is measuring your origin server’s response time.
Wow you actually nailed that ballpark rate nicely with your guess