Wordpress LScache Plugin: 401 unauthorized while using .htpasswd
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi! There is an issue with LiteSpeed Cache on my staging page. The site is blocked using password: AuthUserFile /path/to/.htpasswd AuthName Password AuthType Basic Require valid-user After authentication files generated by LS Cache (CSS, JS) are not loading because of 401 error. Is there any workaround to use password protection and LiteSpeed Cache same time? Best Regards George Hi, maybe you can put some SetEnvIf to put http auth only to pages, but not to any static requests or just deny access to all and only allow form your own IP , this way you dont even need to invoke http auth Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference