Chrome developer tool warning on images [duplicate]
Possible Duplicate:
Asp.net MVC page is giving Mime type warn开发者_如何学Cings for image files
I am working in my ASP.NET MVC app within VS 2010 and so I use the development server for this purpose.
When I enable resource traking on Chrome Developer tool I am seeing a plethora of warnings regarding the images of my app. The warning says:
Resource interpreted as image but transferred with MIME type application/octet-stream.
for every image used in my site.
What this warning means?
It means your server is sending the wrong Content-Type
header for the images. You'll want to look at the server configuration to ensure that it's sending images with their correct MIME types (e.g., image/jpeg
for JPGs, image/png
for PNGs). Not really a problem just for a dev box, but you wouldn't want your publicly-facing server to do that.
精彩评论