Only pages accesed through url are cached




Wordpress LScache Plugin: Only pages accesed through url are cached

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, First congratulations for the great plugin. In the web page todoenjoy.com, I am configuring the plugin and I am finding that only the main page todoenjoy.com hits the cache (I can see in the browser in the reponse headers: x-litespeed-cache: hit,private). When I am logged out it says x-litespeed-cache hit. For the rest of assets, (.js, .css, html, png, svg) that are downloaded by a service worker through get http, do not hit the cache. I have installed litespeed plugin and is up to date as of today. Also I have enabled caching, and 604800 for standard ttl and have allowed in optimization in the concept TTL de cach? CSS/JS for 604800 seconds. Also since I control the version changes when needed, firing manually the service worker update and flushing the server cache at the same time, I have included the following directives at the end of the .htaccess file to allow the browser updating the files when I trigger the service worker update: Header set Cache-Control no-cache, no-store, must-revalidate Header set Pragma no-cache Header set Expires 0 So if you need any further information, please let me know. Thank you very much for your help The page I need help with: http://todoenjoy.com Hi, LSCWP only caches dynamic request, for static files , like CSS/JS/IMG , there is no need to cache them the CSS/JS cache is option for how long the combined/minifed CSS/JS will be kept and this option will be removed in future release to reduce the confusion. Header set Cache-Control no-cache, no-store, must-revalidate Header set Pragma no-cache Header set Expires 0 this rule effectively disables browser cache (which I refer to expire and cache-control header for static resources) , you should only place this header over dynamic request. Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference