Not replace image to Webp




Wordpress LScache Plugin: Not replace image to Webp

Last Updated on: Wed, 15 Apr 2026 00:00:02
Image WebP Replacement: On In page source: https://static.site.com/wp-content/uploads/2020/07/image-336?200.jpg ? ok https://static.site.com/wp-content/uploads/2020/07/image-336?200.jpg.webp ? ok htaccess: ### marker WEBP start ### RewriteCond % HTTP_ACCEPT image/webp [or] RewriteCond % HTTP_USER_AGENT Page Speed RewriteRule . - [E=Cache-Control:vary=% ENV:LSCACHE_VARY_VALUE +webp] ### marker WEBP end ### Image optimized to Webp, but not replaced. Why? What i need to do? This topic was modified 2 years, 3 months ago by gati2012. This topic was modified 2 years, 3 months ago by gati2012. Hi, Is that CDN-like sub domain for static resources only ? I assume you have http://www.domain.com , then load images on static.domain.com ? if so , was that URL replacement done by LSCWPs CDN feature ? Best regards, I use bunnycdn. If i disable CDN i also have not replaced to webp images Hi, please provide the report number, you can get it in toolbox ?> report , click send to LiteSpeed when you disable CDN , I assume it is loading as origin URL ? as domain.com/image, instead of static.domain.com/image ? Best regards, another example. first image is not webp, but webp version exist and work correct Hi, Please provide the report number. and also disable this static.site.com domain for the moment. make sure you see webp on original domian first. Best regards, hm, disable cdn and its rewrite it Hi, You mean if disable CDN , all links rewrote to webp link ? by disable CDN , which plugin ? are you using BunnyCDN plugin? Best regards BunnyCDN plugin using. Yes all rewrited without plugin. But now i setup cdn setting and url not rewrite to cdn with litespeed plugin(( Hi, please check following: 1. make sure BunnyCDN plugin is disabled. 2. make sure LSCWP CDN feature is turned ON 3. make sure CDN URL is set to https://static.domain.com/ 4. make sure Origin URL is set to //domain.com/ most importantly: do not miss any / at beginning and at end of URL, use exact format as I showed after you made change , do a purge all Best regards, Wow. Thanks you! All work. glad to know Sorry, another question? Plugin ampforwp generate amp pages. At amp pages images not rewrited to webp, but rewrite url to cdn server. @CacheCrawler can you help with webp on amp pages? Please close it. I think need create another topic



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



Reference