How to increase the TTL value of cached css and js ?




Wordpress LScache Plugin: How to increase the TTL value of cached css and js ?

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I am using this plugin on my newly migrated site on AWS having cyberpanel (openlitespeed server) using AMI https://aws.amazon.com/marketplace/pp/B07MPZQ4PS When I checked my page speed score in google pagespeed tools, It suggested me to increase the duration of TTL (default is 7 days) caching static resource like CSS, JS and Fonts. I tried to set these value higher in plugin setting options but nothing is happening. I purged the cache and also restarted the openlitespeed server but nothing worked. Please see the images https://pasteboard.co/IEPQ5rY.png Hi, Please follow this wiki to set Expire header Best regards, Thank you, I followed the tutorial, It added the TTL but now css and js file is not loading Hi, The virtual host conf file is in /usr/local/lsws/conf/vhost/Example/vhconf.conf or ../vhost/wordpress/vhconf.conf There should be a block start with Context Could you post that part? Dont post it here directly, you can submit the text to gist.github.com then provide the link Best regards, Sorry for the late reply, Here is the link gist.github.com/sanjayojha/aedbfc86052584469b05c7d6e53bdc18 I am not sure why this does not load css and js generated by lightspeed cache Why this configuration is not loading from .htaccess at first place? Does cyberpanel have any issue? Hi, Updated the OLS wiki for this matter to make it more easier to understand. Best regards, Thank you, can you give the link?



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



Reference