Fix image format for Safari and old browsers (#18646)
Older versions of Safari (and other browsers) do not support webp format so we were incorrectly falling back to png. This PR fixes #18509 so that we fallback to the original image format if a modern format like webp was not explicitly provided in the Accept header. Tests were added to ensure that the Accept header for Safari, Firefox, and Chrome work properly.
Showing
Please
register
or
sign in
to comment