What is the importance of correct MIME types?

html, mime

Solution

Serving files with an incorrect mime type can open up security holes. Here's a high profile example.

Problem

In my Chrome I am getting these warnings: ``` Resource interpreted as stylesheet but transferred with MIME type text/plain. Resource interpreted as script but transferred with MIME type text/html. pngResource interpreted as image but transferred with MIME type text/plain. ``` Why should I care? Or what is the probability that there is a browser that wouldn't treat the resource as the main browsers do?

Original source