- Input
- Expected output
- application/pdf
Modern browsers display PDFs inline by default when Content-Type is correct.
mime type by file extension
Setting the correct Content-Type is essential for browsers, CDNs and APIs to handle files correctly. A wrong MIME type can make the browser download a file instead of displaying it, or cause failures loading WebAssembly and web fonts.
Modern browsers display PDFs inline by default when Content-Type is correct.
Critical: serving as application/octet-stream may cause failures in Wasm module fetch().
A MIME type (or media type) is a two-part identifier — type/subtype — that tells the receiver what format a piece of data is in. Originally created for email (Multipurpose Internet Mail Extensions, RFC 2045), it is now ubiquitous in HTTP, where the Content-Type header defines how the browser interprets content.
It depends on the type. For CSS: the browser may ignore the stylesheet. For JS: some environments refuse to execute it. For WebAssembly: module failure. For images: the browser may display as text. Always use the official IANA type to ensure predictable behaviour.
No. It helps explain the scenario and use the tool more safely, but real decisions should consider official sources, full context and qualified guidance when needed.
Search by file extension or full MIME type