WordPress images ·
Keep a JPEG fallback on a cached WordPress page
When a phone and a desktop open the same cached article, each browser can choose the image it can display. Lens 1.4.4 puts that choice in the page itself.
Take a photograph used halfway down an article. Keep its JPEG original and convert a copy to WebP or AVIF with Lens. When Lens finds both files for an eligible image, it places the modern format in a typed source inside a picture element. The enclosed image still points to the JPEG. PNG originals work the same way.

Watch the Lens settings tour (animated GIF)
Check the image the browser selected
Open the article and inspect the photograph in your browser’s developer tools. The source lists the modern candidates. The image underneath carries the fallback and keeps its dimensions, alternative text and loading behaviour. With the image selected in the Elements panel, enter $0.currentSrc in the console to see the file the browser actually chose. Try again at a different viewport width and inspect the image request in the Network panel.
Lens leaves an existing picture element alone. A theme can still use one crop for a phone and a different crop for a wider screen. On WordPress with template enhancement, Lens can process the rendered page. On older versions with the HTML Tag Processor, it processes post content.
Open System Information under the Lens settings to see which formats the server can write.

Use the same HTML from the page cache
Ace Redis Cache can store that article once and serve the same picture markup to the next reader. Refresh an existing cached copy after converting the image or upgrading Lens, then check that both the fallback and the modern file are available at their public URLs. The browser chooses the source after it receives the page.