开发者

Chrome interpreting jpg resource as Document

Consider the following image at: http://znood.com/images/801/130x130.jpg

I have a controller rendering this image and transferring it with image/jpeg MIME.

Chrome is throw开发者_JAVA技巧ing the warning:

Resource interpreted as Document but transferred with MIME type image/jpeg.

Why would an image be interpreted as a document and why would Chrome throw such a warning?


add the proper doctype to your pages, something like

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

and then start your HTML with

<html xmlns="http://www.w3.org/1999/xhtml">

Regards,

M.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜