Wordpress LScache Plugin: Webp Images
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, under image optimization I have Image Webp replacement turned ON. Webp images are shown everywhere on my site except on the single product page. I havent changed anything under the default settings of Webp attribute to be replaced . I think my issue has to do with specifying element atribute to be replaced with Webp. I dont know what to add there to get my images on single product page to be replaced with Webp. Kindly help as this is brain-wrecking for me but Im sure with your skills this is a peice of cake? Can you let me know what do I need to put in WebP Attribute To Replace box so I can get my Webp images to be shown as single product image as well? Report number: VMGFIFOY By the way, have a bless New Years day to you and your family? Hi, happy new year to you too I checked one of your product page, I can see most iamges are webped only few images are due to either webp not exist, or loaded by javascript are not webped. LSCWP can reliably detect and replace images in HTML tag, but if iamges are loaded by CSS or JS , it may not be able to detect and replce Best regards, The issue I have is that for instance? On the homepage of my website there is the image of mens camouflage jeans? That image is webp ? I click that product and now Im in the single product page? When I right click the image of that same product its show jpeg? I am using Product Gallery Slider for Woocommerce ? I think my issue has to do with specifying element atribute to be replaced with Webp. I just dont know how to find the element so I can add it to Webp attribute to be replaced Hi, yeah , thats normal , one of my site got this same issue the image is loaded by JS , LSCWP may not be able to detect/replace when image is loaded by JS since you are not using any CDN , here is a little workaround add it into top of your .htaccess RewriteCond % HTTP_ACCEPT image/webp RewriteCond % REQUEST_FILENAME .webp -f RewriteRule ^(. ).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L] this will force to load webp , though the URL will remain same , but under the hood the format is webp file. best regards, I am adding quic.cloud cdn to my website now as we speak? I had cloudflare but was told quic.cloud is better? Will that still work? Or with quic.cloud set up I will need to do something else Hi, based on my test, it works , but please do double check Best regards, Ok will do? I just realize that my website isnt be cache from litespeed? I just check response header and its showing x-litespeed-cache missed on first access, it could be normal , repeat it and check it again 5 refreshes in and same thing? yeah , check the other topic you made , I posted a guide there to track purge call Ok checking now thanks? I think its because I have my manager addign products to the site so maybe everytime a new product is added litespeed automatically purges? I tried it just now and got hit this time?
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference