Asp.net MVC page is giving Mime type warnings for image files

。_饼干妹妹 提交于 2019-11-29 16:35:05

问题


While I do not see any functionally or jquery UI elements affected by this, but when I access my asp.net mvc web page the chrome developer console is logged with a bunch of error messages like so:

Resource interpreted as image but transferred with MIME type application/octet-stream.

All of the warnings are for jquery UI images (though I don't have any custom images on there so I don't know if it's jquery UI only). All the jquery images still load correctly.

Does anyone have any insight on why this is happening?


回答1:


Are you running your site from Visual Studio's built-in web server? Apparently, you don't have much control over the MIME types in that environment (see this). I was seeing the same behavior and was starting to stress about it before finally realizing that I wasn't even looking at the IIS-hosted application.



来源:https://stackoverflow.com/questions/2925888/asp-net-mvc-page-is-giving-mime-type-warnings-for-image-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!