Adaptive optimised format delivery is sending .avif to incompatible app

Adaptive optimised format delivery is sending .avif file to my app (Embedded web view for Mac Catalyst app on Ventura) when it is not compatible with .avif files. Is there anyway I can configure/force Cloudflare to send a .webp or can the issue be rectified to detect the correct compatibility options. Manually setting the user agent doesn’t seem to affect the returned format…

Hi, your client must be sending Accept header with image/avif in it, if you can’t remove this header, you can set up a worker in front and do content negotiation there:

1 Like

You can use Vary for Images if you are on a paid plan.

Something similar is also possible with Transform Rules.

Thank you ! Modifying the accept headers using a service worker seems to have rectified the issue.

This topic was automatically closed after 15 days. New replies are no longer allowed.