I tried it out:
1) I installed Elementor plugin
2) I inserted a background image on the section, using “classic” background type
Yes, the background is CSS. And whats more. The CSS is located in an external stylesheet. That last point the difference. Alter HTML does replace urls in CSS, when the CSS is part of the HTML and “Replace image URLs” is choosen. But it does not process external CSS. So Alter HTML cannot help you. I have no plans to create a feature that replaces CSS in external .css files. It is probably possible, but I imagine that there would be many pitfalls.
However, as you say, the .htaccess files even works with external CSS (and yes, lazy loaded images too), as they redirect the image request itself. I tested it right now. Elementor + WebP Express with redirect rules – Works!
So the issue you are facing, @tdrv, is that varied image responses aren’t very CDN friendly. On most CDNs you must tweak their settings in order to make it work. If you want me to help you getting Cloudflare to work with varied image responses, please start a new topic so this one doesn’t get polluted.
-
This reply was modified 3 years ago by rosell.dk.
-
This reply was modified 3 years ago by rosell.dk.
-
This reply was modified 3 years ago by rosell.dk.