3 ms·
I'm seeing some weird behaviour with that on both Chrome 98 and Firefox 97. Chrome seems to be displaying the JPEG, and when I right-click and "Open image in n
by mkl 5y ago
I'm seeing some weird behaviour with that on both Chrome 98 and Firefox 97. Chrome seems to be displaying the JPEG, and when I right-click and "Open image in new tab", I get the raw bytes of the AVIF file, not any version of the image. In Firefox, it seems to be displaying the JPEG too, and when I right-click and "Open image in new tab", I get the AVIF file (as an image). Also in Firefox, probably a CSS thing, when the window is made smaller vertically (e.g. by the developer tools at the bottom), the image is scaled down vertically but not horizontally. I'm looking at the image at the top of https://pilabor.com/blog/2021/05/remote-desktop-with-xrdp-and-kubuntu/ https://pilabor.com/blog/2021/05/remote-desktop-with-xrdp-an...
- dchest 5y agoThat's probably because OP's server doesn't serve a correct Content-Type header for AVIF and also disables content type sniffing. Needs: AddType image/avif .avif
- mkl 5y agoMakes sense for Chrome's behaviour, but that means Firefox is ignoring the "X-Content-Type-Options: nosniff" header, which it supposedly respects: https://blog.mozilla.org/security/2020/04/07/firefox-75-will-respect-nosniff-for-page-loads/ https://blog.mozilla.org/security/2020/04/07/firefox-75-will... Also, upon further investigation, I think both browsers are displaying the AVIF for me. It has quite a bit less detail than the JPEG, so it's identifiable.
- dchest 5y agoRight, nosniff doesn't apply to images.
- sandreas 5y agoShould be fixed, thank you!