Serve WebP .htaccess method




Wordpress LScache Plugin: Serve WebP .htaccess method

Last Updated on: Wed, 15 Apr 2026 00:00:02
I am using theme where homepage slideshows are generated using javascript. Because of this, regular settings do not seem to work on these images. So my theme developer asked to find out if Litespeed Cache support serving WebP images through .htaccess method? The page I need help with: https://karolinnafoto.lt/ Hi @audiosavas, I find the images are loaded on frontend element so it should able to replace as WEBP automatically. But I find those images do not have WEBP version, please go to the media library to find out does it missed WEBP format for the whole image has not optimized yet. Hi @stanleylitespeed theme developer confirmed that yes, element is IMG, but images are generated through javascript (Im not sure what that means) and I still need to use .htaccess method. Can it be edited through your plugin to fix the problem? The first image has webp version, others do not. This is another problem with litespeed that optimization is stuck now, but I will open a new topic for that. On your site the background image also loaded on the frontend, I think Javascript is just for transaction. The reason for its not replaced as WEBP is the image does not contain a WEBP version, for example: /wp-content/uploads/2015/08/Vestuviu-fotografas-Vilniuje-Olandu-kepure-fotosesija.jpg.webp. Could you check on the media library to see does that image compressed or the WEBP icon is dimmed(grey-out)? Here is how it looks for my four homepage pictures: link That does not look dimmed to me. Could there be another issue with the image optimization? The link is not working, could you upload it again? Here it is. Now the image optimization is showed at 100%, but not all images gave webp versions. I have to admit, I did enable webp only in the middle of the first optimization that was happening a week ago. For those missing WEBP images, please click reset and run image optimization again. And all of your image in the screenshot is dimmed, thats mean the images main source doesnt get optimized. Please try to reset all of those images again. Fixing my previous problems with optimization and resetting images as per your suggestion fixed everything and all works perfectly now. Thank you!



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



Reference