Http Request Headers Modification
What did you expect to happen?
I expected to see the modification of http request headers.
What actually happened?
It did not change the request header by setting "Accept" to "image/jpg,image/png". Nothing changed actually.
Reproduction Steps
Create a new transform rule.
Have it applied to all incoming traffic (just for the sake of testing)
and choose Set Static
and Set "Accept" to "image/jpeg,image/png,image/jpg"
8 Replies
How are you checking the request header? Server logs?
Inspect element > networks > request headers
Yeah that won’t show it. The headers will be Cloudflare -> Server.
I see. So is there any other way to force Cloudflare to serve image in jpg/png?
I mean the headers will be sent to the server as you have set
But the image served is still in avif
so it seems like your server isn't properly converting it
you should remake the code on the server to convert it to the format you
or if its some scary saas app that'll crumble when poked, you can accomplish it with a worker
Well thanks!