Reduce initial server response time
-
Hi
How to solve this problem: Reduce initial server response time
I got that suggestion on GTmetrix
Thank youThe page I need help with: [log in to see the link]
-
Hi,
repeat the test again that message should be gone
you should also check in waterfall , the main request response header , make sure you see “x-ltiespeed-cache: hit”
Best regards,
No, I have retested and the problem is still there
I don’t see this:x-ltiespeed-cache: hit, why?
Thank youHi,
it’s there

try disable cloudflare , it will increase TTFB
Best regards,
Yes, I have seen
x-ltiespeed-cache: hit
I’ve also enabled Development Mode on CloudflareHowever, I still see a suggestion “Reduce initial server response time” in GTmetrix
Why?
Thank you-
This reply was modified 5 years, 3 months ago by
Mushlih Almubarak.
Hi,
because cloudflare will increase TTFB
normally , if there is no major issue to your network or your server network
without CF : user <—> server
with CF : user <—> CloudFlare <—> server
and simple physics 101 , shortest distance between 2 points is straight-line , and you got more distance to travel if all your request has to go through cloudflare
set dev mode doesn’t help , you need to fully disable it
Best regards,
set dev mode doesn’t help , you need to fully disable it
Then, if I pause Cloudflare temporarily from my site, will it work?
Thank youHi,
No , you need to disable it , as set in DNS page from proxy to DNS only
Best regards,
Yes, you are right, I have disabled Cloudflare from my site and I don’t have that problem again
But is there a way to get Cloudflare to connect to my site, and the problem is not there?
Thank youHi,
Sadly no , like I said , that’s physical limitation.
maybe you can set up CloudFlare as separated, CDN domain , then rewrite your static resources to it
Best regards,
Sadly no ,
I intend to solve all the problems in GTmetrix, and not using the CDN is a new problem with GTmetrix
maybe you can set up CloudFlare as separated, CDN domain , then rewrite your static resources to it
Can you explain it more easily? Because I don’t really understand
Thank youHi,
basically like this
1. keep your DNS on cloudflare, but for main domain , only set “DNS only”
2. create a subdomain , like “cdn.domain.com” on your DNS and also on your hosting panel , and point it to same directory as main domain , for example on cPanel , point it to /public_html
3. make sure this cdn.domain.com works , access it any static resources , for example from your origin , you have an image URL https://www.domain.com/wp-content/uploads/2020/12/12/some.jpg
then make sure
https://cdn.domain.com/wp-content/uploads/2020/12/12/some.jpg
loads same image.
4. now go to your CF DNS page , enable proxy on this cdn.domain.com
5. after that , go to LSCWP -> CDN , set CDN URL to https://cdn.domain.com/ , and origin URL to //www.domain.com/ , save and purge all
Best regards,
Hi
Thank you very much for the explanation
But if I do that, will the Cloudflare features on my website be reduced? Such as speed, security, and others
Thank you very muchHi,
no , if you do that way , CF won’t be active on main site.
so it’s up to you , if you want to TTFB to look better, or over-all better performance and security
Best regards,
Ok, thank you for your explanation
-
This reply was modified 5 years, 3 months ago by
The topic ‘Reduce initial server response time’ is closed to new replies.