Hi guys,
I need some help please.
LiteSpeed server has ability to optimise images and add webP version with htaccess rewrite rules.
It works with Pro when page is created with Gutenberg editor when you add some images, or on blog post when feature image is added, but it won’t re-write images when page is created with Pro and images added.
It’s probably because the way Pro adds images attributes?
LiteSpeed server has this option:
Specify which element attributes will be replaced with WebP. Only attributes listed here will be replaced.
Use the format element.attribute or .attribute (element is optional). One per line.
By default this is the list that is added
img.src
div.data-thumb
img.data-src
div.data-large_image
img.retina_logo_url
How would you configure this to match Pro image attributes?
I’ve tried many different setups like this one:
background-image.url
Any help is much appreciated.