Google-chrome – Chrome interpreting jpg resource as Document

google-chromeimagemime-types

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

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

Chrome is throwing 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?

Best Answer

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.