• Resolved RC Verma

    (@rcverma)


    Reduce initial server response time i have seen this many times in PageSpeed Insights.
    What could be a reason & how can this be solved.

    Report number: YFPWOWSI

    Report date: 07/22/2021 18:43:18

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

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

    (@qtwrk)

    It seems your site is behind some kind of proxy ? or if you have enabled a lot of ESI module ?

    Thread Starter RC Verma

    (@rcverma)

    I am using Cloudflare as DNS Only & Closte as a hosting & BunnyCDN. I havent enabled ESI module ever. So what to do.

    • This reply was modified 2 years, 9 months ago by RC Verma.
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    then please contact Closte for further assistance

    this is now server-side issue that I can not help with from plugin-side

    once page is cached and no ESI involves , it is treated like a static file , but for whatever reason , it takes significante long time to load the page

    I accessed your home page thrice , on my Wi-Fi , the content download time fluctuates greatly , from 17ms , to 76ms and even 194ms

    Best regards,

    Thread Starter RC Verma

    (@rcverma)

    I think the issue is from Litespeed Plugin Only Cause i installed another Cache Plugin & There Server Response Time reduced a lot seems its only via Litespeed Plugin thats causing the issue.

    Plugin Support qtwrk

    (@qtwrk)

    try it this way

    1. disable plugin

    2. add this into to your main .htaccess

    RewriteEngine On
    RewriteRule .* - [E=Cache-Control:max-age=300]
    

    3. and then use browser’s dev tool to check the timing on main request on cache hit cases

    this rule will enable cache without plugin to test

    4. after that , create a php file , let’s say clean.php with code

    <php
    header('x-litespeed-purge:*')

    to clean up non-plugin-generated cache , and enable plugin back

    Thread Starter RC Verma

    (@rcverma)

    Hi,
    Did as you said. But i have tried this on my cloned site homepage
    https://app-60d0b871c1ac1907f42e3905.closte.com/

    1. I have disabled the Plugin then

    2. after loading site first time i checked in dev tool &
    this is what TTFB & content download show

    https://drive.google.com/file/d/1cxcXVm3U0FBDxTrNhmqzRzEyHhGAeON9/view?usp=sharing

    3. Also made Clean.php file & added code as said & after that i have enabled plugin now what to do after that.

    Plugin Support qtwrk

    (@qtwrk)

    on your step 2 , make sure you see x-litespeed-cache hit header in response header , and then mark the TTFB

    Thread Starter RC Verma

    (@rcverma)

    Hi,
    On Step 2 i have made a video
    after repeating the process step 1 then step 2
    & on step 3 have made a video
    for better understanding https://drive.google.com/file/d/11Nr70v6I3CpEjeflFC1L_xmYiq8vS2AD/view

    So i think when i load site first time it shows with x-litespeed-cache miss & ttfb goes high & after refresh x-litespeed-cache hit ttfb gets very low. But i think on live site automatically sometime i find them x-litespeed-cache miss but after refresh it gets with
    x-litespeed-cache hit. So what to do so that users always gets Hit instead of Miss.

    • This reply was modified 2 years, 8 months ago by RC Verma.

    I’m guessing to always get a cache hit (or to get a cache hit majority of the times) you have to enable the Crawler function.

    We’ve been looking into it and are upgrading our hosting to a VPS just to be able to run crawler (as shared hosting don’t allow crawlers).

    The benefit of crawlers always keeping cache warm and serving cached content to users is insane.

    Thread Starter RC Verma

    (@rcverma)

    I am on Closte Shared Hosting Platform & they disabled Crawler i asked them they told me they will not Enable Crawler. So Try to bring some better solution

    Plugin Support qtwrk

    (@qtwrk)

    please try and provide following information :

    1. where is your physical location when you doing these tests ?

    2. where is your server’s physical location ?

    3. please try , repeat 3 times and calculate average , TTFB on cache miss with LSCWP

    4. please try , repeat 3 times and calculate average , TTFB on cache hit with LSCWP

    5. please try , repeat 3 times and calculate average , TTFB on cache miss with my rewrite rule caching solution

    6. please try , repeat 3 times and calculate average , TTFB on cache hit with with my rewrite rule caching solution

    7. please try , repeat 3 times and calculate average , TTFB on any of static request , JS , CSS, images …etc all good

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Reduce initial server response time’ is closed to new replies.