Reduce initial server response time
-
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]
-
It seems your site is behind some kind of proxy ? or if you have enabled a lot of ESI module ?
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.
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,
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.
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
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 showhttps://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.
on your step 2 , make sure you see x-litespeed-cache hit header in response header , and then mark the TTFB
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/viewSo 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.
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
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
- The topic ‘Reduce initial server response time’ is closed to new replies.