3 ms·
I've noticed sometimes that when Cloudflare optimises images and serves up their own WebP versions of your existing images, if you go to save it you get the ori
by philo23 5y ago
I've noticed sometimes that when Cloudflare optimises images and serves up their own WebP versions of your existing images, if you go to save it you get the original jpg/png back.
Presumably the HTTP request that gets sent when you save an image sends different Accept headers.
Doesn't seem to work all the time, but presumably thats down to a combination of different Cloudflare settings, origin server configuration and what format the original image were in too.
- tyingq 5y agoMy guess is that the HTTP client request, when you do right click "Save Image As", is sent with Cache-Control:no-cache and Pragma:no-cache headers. Which bypasses Cloudflare.
- jonsneyers 5y agoI think it just re-requests without the "Accept: image/webp" in the request header, so you get whatever the server would have sent to a browser that doesn't know about WebP.