[solved] First Byte Time optimization?

Active Member

I've got a few websites that are getting a failing mark on First Byte Time on webpagetest.org and other page speed/load time tests, and I am wondering what settings in Litespeed we should tweak (and to what parameters) to optimize this further?

Administrator

can you do tests on a specific web site to illustrate the issue accurately ?

using webpagetest.org as test tool
1. under apache, the TTFB (Time To First Byte)
2. under litespeed, the TTFB which not from cache (without response header: X-LiteSpeed-Cache:hit)
3. under litespeed, the TTFB which from cache (with response header: X-LiteSpeed-Cache:hit)

Administrator

tried to cache, but faild. so same result as "Litespeed without Cache"
only see headers like:
x-litespeed-cache-control: public,max-age=604800
x-litespeed-tag: 9061_URL.b315d12a9a6acd0b12d04b532e01b8e2,9061_F,9061_Po.802,9061_PGS,9061_
but not see
x-litespeed-cache:hit

most likely cache root for the website has problem.
ask your host to check the cache root for this website. in WHM/cPanel, default setting is /home/username/lscache.
check with
#ls -l /home/username/lscache

Active Member

A-ha! Found what it was... the cache files in /home/username/lscache folder were old and not updated with the new files, for whatever reason... or something was off. So I deleted that folder and all the content in it, re-enabled the latest LSCache, and voila - first byte time went from an F to an A.