When loading my page I get this warning:
Resource interpreted as Image but transferred with MIME type application/octet-stream
My page is loading jpeg images. The server writes the images bytes to an output stream ans sends it to the client.
What do I have to do to prevent this warning?
You'll have to set the correct Mime type.
Set the correct Content-Type
http header for the image.
For instance a jpeg image will have Content-Type: image/jpeg
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.