Skip to content

MIME type: Definition and Use Cases

TL;DR:

MIME type (Media Type) is a content format declared via Content-Type header. Examples: text/html, application/json, image/jpeg. Determines how the browser processes the response. Wrong MIME on JS/CSS files with X-Content-Type-Options: nosniff blocks the load.

What is MIME type

MIME type (Media Type) is a content format declared via Content-Type header. Examples: text/html, application/json, image/jpeg. Determines how the browser processes the response. Wrong MIME on JS/CSS files with X-Content-Type-Options: nosniff blocks the load.

Frequently Asked Questions

Do I need MIME type?

If you work with web infrastructure — yes. See description above.