Polish with Lossy Compression Not Applied to Specific Path

I’m experiencing an issue with the Polish feature on my website.

  • I have enabled Polish without loss at a global level
  • I have set up a specific rule to apply Polish with lossy compression to images in a certain path

However, it seems that the lossy optimization is not being applied:

  • In the file headers, I still see JPG instead of WebP
  • The image sizes remain exactly the same as the originals

I understand from the Cloudflare documentation that WebP conversion doesn’t always occur if the JPG is already well-compressed, but I don’t understand why the file sizes remain identical. I would expect at least a slight reduction in size, at least for one of the images involved.

Is there something I might be overlooking in the configuration? Could you verify if Polish is actually optimizing these images as expected?

Thanks in advance for your support!

Hi @Giulio

Did you open a support ticket? If yes, could you please share the case number?

We need your domain/more info to troubleshoot this.

Thank you!

I’ve just opened ticket no. 01441575.

Thanks @MariG :slightly_smiling_face:

1 Like

Thanks to @MariG’s support, we’ve discovered that the presence of “Vary: User-Agent” in the header blocks the creation of WebP images.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.