Webp Image not displayed in Gutenberg & more




Wordpress LScache Plugin: Webp Image not displayed in Gutenberg & more

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi! I have enabled all settings for using webp replacement images but they are not loading at all. Images are already generated, but it seems that the plugin cant find the right attributes. I dont know much about it as well and Iv added to the list the following: img.flex-block__element--image-link img.flex-img-tag div.flo-block-contact-block-1__contact-image img.class=flo-block-listing-2__featured-image loaded full-visible img.flo-block-listing-2__featured-image-wrap .figure div.flo-block__container figure.wp-block-gallery figure.blocks-gallery-item figure.img.src figure.img But still they are not displayed. Something Iv found is that on galleries with old formats (not gutenberg) they were beeing displayed, but when using the new blocks they dont. This is my website: https://www.carlosferrari.com Hi, Could you please specify a page or an image so we can check ? I am seeing most of images in your homepage are webped , only one is loaded by CSS file which currently LSCWP can not replace image URL inside of CSS file. Best regards, Hi, Could you please specify a page or an image so we can check ? I am seeing most of images in your homepage are webped , only one is loaded by CSS file which currently LSCWP can not replace image URL inside of CSS file. Best regards, Sure. My homepage doesnt load any of its jpegs as webp, in fact only my logo thats .png is being loaded as you can see here: https://prnt.sc/txwvnx About gallery posts, I have some posts that are older and in the classic editor that are loading the webps: Link: https://www.carlosferrari.com/blog/casamento-fabricio-e-vivian Proof: https://prnt.sc/txwt19 The new ones in Gutenberg are loading in jpeg: Link: https://www.carlosferrari.com/blog/ensaio-pre-casamento-pati-e-marcelo-vinicola-casa-valduga-vale-dos-vinhedos-serra-gaucha-rs Proof: https://prnt.sc/txwtgx Hi, Could you please try this : 1. export your current setting 2. reset to default 3. only enable webp replacement 4. purge all and see how it goes. Best regards, No luck Did everything you asked andL Enabled webp replacement and tested = same problem. Enabled WebP For Extra srcset too = same problem. What should I do now? Hi, Could you please go to admin area , left-side bar ?> LiteSpeed Cache ?> Toolbox ?> [6] Debug Settings in this page: set Debug Log to Admin IP Only add your IP into Admin IPs (you will see your IP below.) set Debug Level to Advanced save changes. Now go to [7] Log View, click on admin-bar LiteSpeed Cache ?> Purge All then click button [D] Clear Log , keep this window open, dont close it nor navigate away from it. Now ,open a new window, access your page , like https://www.carlosferrari.com/blog/ensaio-pre-casamento-pati-e-marcelo-vinicola-casa-valduga-vale-dos-vinhedos-serra-gaucha-rs/?test (please do remember attach ?test to it) once page is loaded , go back to Log View window and refresh this page, you should see the debug log is showing up. Then please copy all the text , paste it into https://paste.ubuntu.com/ then post the link it generated for you. Best regards, Hi @CacheCrawler Here it is! https://paste.ubuntu.com/p/J9KK5w6nNW/ Hi, OK , now this is super weird from log 08/12/20 14:54:27.422 [187.0.6.35:53031 1 JBj] [Media] webp replacing: https://www.carlosferrari.com/wp-content/uploads/2019/12/carlosferrari-fotografia-ensaio-precasamento-patrici-e-marcelo-vinicola-casa-valduga-fotografia-de-familia-vale-dos-vinhedos-bento-goncalves-serra-gaucha_10.jpg => LiteSpeed Media->replace_webp(https://www.carlosferrari.com/wp-content/uploads/2019/12/carlosferrari-fotografia-ensaio-precasament)@861 => LiteSpeed Media->webp_srcset(ARRAY)@844 => WP_Hook->apply_filters(ARRAY,ARRAY)@289 => /home/5a7cf386f911c81674c23d1b/public_html/wp-includes/media.php@206 08/12/20 14:54:27.422 [187.0.6.35:53031 1 JBj] [Media] - replaced to: https://www.carlosferrari.com/wp-content/uploads/2019/12/carlosferrari-fotografia-ensaio-precasamento-patrici-e-marcelo-vinicola-casa-valduga-fotografia-de-familia-vale-dos-vinhedos-bento-goncalves-serra-gaucha_10.jpg.webp this image was indeed replaced to webp already , but somewhat browser loaded jpg instead of webp may I know if this is a shared hosting ? or your own server? best regards, @CacheCrawler Indeed, weird. And knowing that classic editor will show the webps is weirder! Yes, its shared. The company is closte.com with litespeed enterprise and servers hosted in GCP. Hi, could you please join our Slack community ? we will investigate it further. if youd join in , please let me know your nickname and I will contact you. Best regards,



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



Reference