I use SPIO with Cloudflare and my WebP images aren't served, why is that?

ShortPixel Image Optimizer can be used to deliver WebP images even when a website is using Cloudflare. For this to work out of the box, please note that you need to have the option Using the <PICTURE> tag syntax selected in Settings > ShortPixel > Advanced as presented below:

Both sub-options can be used:

You can also use the second option (Without altering the page code (via .htaccess)), but you will have to make sure to configure Cloudflare so that it supports the Vary header and is correctly configured to serve WebP from the same URL based on the browser capabilities. For more information please visit this page.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us