Wordpress LScache Plugin: Not Caching according to PageSpeed Insights
Last Updated on: Wed, 15 Apr 2026 00:00:02 On the dashboard Public, Private, Object and Browser shows ON . When testing on PageSpeed Insights it is still showing Serve static assets with an efficient cache policy Did I do something wrong when configuring the plugin? Below is a link to my website. https://kmlighting.my/ Hi, Could you please provide the report number ? You can get it in Toolbox ?> Report ?> click send to LiteSpeed Best regards, Heres my report number, thanks for taking a look Report number: JOYHJMYF Report date: 08/05/2020 06:31:59 Hi, I do see ExpiresByType directives in your .htaccess please check in your apache configuration if you have AllowOverride enabled. Best regards, Thanks so much for helping be solve this problem. Ive went over and change the apache2 config to this: Options Indexes FollowSymLinks AllowOverride All Require all granted Rebooted the server and tried analyzing it again on pagespeed insights but it is still showing 22 resources found not being cached. I am not sure if this helps with the problem, I have previously installed AutoOptimize to deal with the render blocking resources. I deactivated it and its showing 70 resources found , I guess Autooptimize compiled many of the resources into one but still isnt caching properly. It stays at 70 too when I tried activating or deactivating LiteSpeed Cache. The website is installed on Digital Ocean droplet. The Instant Click function is also not working, I guess the plugin is caching some of the things but not everything. When Instant Click is enabled, some of the image gets loaded but some of the image never gets loaded at all. Hi, try add Header set Cache-Control max-age=15552000, public into your .htaccess Best regards, Is there a specific location the code needs to go in .htaccess? I added it on the first line and its giving me Internal Server Error when I try to open my website. Its working again now when I commented out the 3 lines added. Heres a screenshot of the code Ive added to the first line https://i.imgur.com/Q4fZRJk.png Hi, please try this set , tested on my cPanel Apache env. Header set Cache-control public, max-age=15552000 Best regards, Ive tried the code above and Im still getting Internal Server Error. I also tried wrapping the public,max-age? like below with quotes and it still didnt work. Could it be a problem with the Digital Ocean one-click wordpress install? Header set Cache-control public, max-age=15552000 Hi, Be honest I have no idea , to me it looks like something wrong with your Apache configuration , but unfortunately I am not Apache expert These cache-control and expire should work right out of box , as long as you have mod_header and mod_expire maybe you could try get some help in stackoverflow.com for Apache-side issue. Best regards, Thank you so much for the help, I finally found the solution. I have to enable enable the mod_headers module in apache with the following command: sudo a2enmod headers Then I added the code snippets give by you into .htaccess and pagespeed insights is showing that all the images are being cached properly. Thank you so much! Hi, Oh yeah , glad to know Best regards, I also had the same situation, not knowing if the error was caused by litespeed or the hosting problem. Help me check my site: https://longvanntv.com/ Hi, @longvanntv please create your own topic for your issue. Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference