• Hi
    How to solve this problem: Reduce initial server response time
    I got that suggestion on GTmetrix
    Thank you

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support qtwrk

    (@qtwrk)

    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,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    No, I have retested and the problem is still there
    I don’t see this: x-ltiespeed-cache: hit , why?
    Thank you

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    it’s there

    try disable cloudflare , it will increase TTFB

    Best regards,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    Yes, I have seen x-ltiespeed-cache: hit
    I’ve also enabled Development Mode on Cloudflare

    However, I still see a suggestion “Reduce initial server response time” in GTmetrix
    Why?
    Thank you

    Plugin Support qtwrk

    (@qtwrk)

    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,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    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 you

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    No , you need to disable it , as set in DNS page from proxy to DNS only

    Best regards,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    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 you

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    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,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    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 you

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    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,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    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 much

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    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,

    Thread Starter Mushlih Almubarak

    (@mushlih)

    Ok, thank you for your explanation

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Reduce initial server response time’ is closed to new replies.