How to activate browser Cache with OLS + Direct Admin




Wordpress LScache Plugin: How to activate browser Cache with OLS + Direct Admin

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hey, Im trying to get browser cache to work with OLS + Direct Admin. General settings info are here: https://docs.litespeedtech.com/lscache/lscwp/cache/#how-to-set-it-up Custom headers info are here: https://openlitespeed.org/kb/how-to-set-up-custom-headers/ The problem is that Direct Admin uses include files, so I cant change any settings directly in the OpenLiteSpeed server interface. And I havnt figured out the proper way to input the correct (general settings) in the config here: /usr/local/directadmin/custombuild/configure/openlitespeed/conf/ So, how do I enable browser caching for static files on a general level by editing configuration files with DirectAdmin + OLS? This topic was modified 2 years, 1 month ago by signofgrey. The page I need help with: http://- Hi, Please check this page This will require root privilege , if you dont have it , please kindly code snippet for that should be like this https://static.litespeed.dev/s/t7ak4 Best regards, Hi, Thanks. Ive implemented whats in the guide and added Cache-control max-age=86400 to the custom config. I can see the request header that max-age is present and PageSpeed insights tell me browser cache is 1 day (we make change to css etc right now, so dont want to go for too long). Do I need to do anything else for browser caching to work properly for all static resources? Br, Hi, could you please post the full header on your static resources ? Best regards, Hi, Here is a full request: https://paste.pics/8b0340aa7c3f893c5224eab64ddb0755 Br, it looks OK if you have enabled CSS combine/minify in LSCWP, you can extend it max-age each time you edit CSS, and purge LSCWP cache , the newly generated css file will have different query and will force browser to fetch from server again Thanks for all the help Br,



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



Reference