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.
精彩评论