开发者

Chrome developer tool warning on images [duplicate]

开发者 https://www.devze.com 2023-01-20 20:16 出处:网络
This question already has an answer here: Closed 12 years ago. Possible Duplicate: Asp.net MVC page is giving Mime type warn开发者_如何学Cings for image files
This question already has an answer here: Closed 12 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消