For Workers & Pages, what is the name of the domain?
What is the issue or error you’re encountering
Cf-cache-status is BYPASS when image/jxl
response is provided, but once image/avif
is provided it does not respond with image/jxl
anymore on supported devices
What are the steps to reproduce the issue?
I have setup vary for images caching with the following configuration:
"https://api.cloudflare.com/client/v4/zones/<zone>/cache/variants" \
--header "X-Auth-Email: <email>" \
--header "X-Auth-Key: <key>" \
--header "Content-Type: application/json" \
--data '{"value":{"jpeg":["image/avif","image/jxl","image/webp","image/jpeg","image/png"],"jpg":["image/avif","image/jxl","image/webp","image/jpeg","image/png"],"avif":["image/avif","image/jxl","image/webp","image/jpeg","image/png"],"webp":["image/avif","image/jxl","image/webp","image/jpeg","image/png"],"png":["image/avif","image/jxl","image/webp","image/jpeg","image/png"]}}'
In the documentation I could find that JXL file extension unfortunately isn’t listed. However nothing about whether or not mime-type image/jxl
is accepted yes or no.
Because of this when browsing the website using Safari you could initially get image/jxl
images but once someone visits using for example Chrome the image/avif
variant would be cached and the Safari user would no longer get the uncached image/jxl
format.