re: Optimizing images for the web - an in-depth guide VIEW POST

re: Hey Adrian, have a look at conditional webp returning. You can see browser headers for Accept and if webp appears there when the request for an ima...

This can cause issues when saving images offline (eg for building offline-capable PWA's) unless you're careful to change the filename extension when you store it offline, eg storing a .jpg file with webp contents can trigger security checks since the mime-type of the contents of the file doesn't match with the mime-type of the file extension (extension sniffing has to be used since there's no mime-type headers for file://)

code of conduct - report abuse