CyberPanel Community

How to correctly configure ls cache module

Ig
Igors #1

Hi friends how to correctly configure ls cache module with this parameter: Cache-Control: max-age=31536000
How i understand it is done in httaccess file. I use joomla and free cyberpanel version so in module there is not much to configure


<IfModule LiteSpeed>
CacheLookup on
</IfModule>


I achived google page speed score 100/100 but this is last thing to do.
"Configure your server to return the Cache-Control HTTP response header:
Cache-Control: max-age=31536000

I would appreciate any help. Thanks

Also can i use redis together with ls cache module?

3 replies
Ig
Igors #3

What ever I try I can not increase max-age=604800 for static files. It is 7 days. I do not understand from where is this caching time.

NK
Nitesh Kunnath #4

Login to Litespeed web panel by appending port 7080 after your server IP
There you will get loads of options to configure things. Try there.

And by the way, stressing too much on pagespeed insights is useless. You can google it and many sensible developers will guide you to not stress too much into pagespeedinsights. If you are getting 100 score, its already more than enough.

Sign in to reply