Wordpress LScache Plugin: WebP and Retina 2x support in LiteSpeed
Last Updated on: Wed, 15 Apr 2026 00:00:02 Just wondering if I could get some help with clarification about WebP support in LiteSpeed, for Retina images I use a popular plugin called WP Retina 2x to create and serve 2x versions of images on Retina devices, and I want to be able to additionally convert both the original and the @2x version fo WebP ? but it seems that LiteSpeed only converts the original and ignores the @2x version. For example, in the uploads directory of a test site ? there is a file named form-logo-300.png and also a retina version named form-logo-300@2x.png . I ran the LiteSpeed conversion to WebP and it only produced form-logo-300.png.webp ? the form-logo-300@2x.png.webp file I was hoping / expecting to see didnt get produced. Ive been Googling but havent found a clear answer, so just wondering if it just perhaps needs to be something Litespeed update on your side in order to support it? Hi, but it seems that LiteSpeed only converts the original and ignores the @2x version. yes, currently LSCWP only optimizes images that found in WP database, if an image is made/edited by 3rd party plugin , which may not be stored in database accordingly , will be ignored. we have a to-do plan for optimize images outside of WP DB , but currently no ETA for this yet. Best regards, Hi Thank you for that Hoping it will be out soon for that Litespeed feature also just wanna asked about background css, that seems Webp images generated by Litespeed are not being served or showing on the background images/inline css (only shows the jpg version and not webp)? Hi, Yes, its known issue , currently LSCWP can replace images in HTML code , but for images loaded by JS/CSS , it may not have the ability to correctly detect and replace. I have a small workaround if you wish to try RewriteCond % HTTP_ACCEPT image/webp RewriteCond % REQUEST_FILENAME .webp -f RewriteRule ^(. ).(jpg|png|gif) $1.$2.webp [T=image/webp,L] add this code at top of your .htaccess , this will replace images when browser supports and webp file exists, despite the image URL will remain unchanged , but under the hood it is forced change to webp format and thus reduce the image size. Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference