MIME type(媒体类型):用于标识数据内容格式的标准字符串,常见于互联网协议与文件传输中,通常写作 type/subtype(如 text/html、application/json),帮助浏览器或程序判断如何解析与处理内容。
/ˈmaɪm taɪp/
The server returns a MIME type of text/plain.
服务器返回的 MIME 类型是 text/plain。
If the response has the wrong MIME type, the browser may refuse to execute the script for security reasons.
如果响应的 MIME 类型不正确,出于安全原因浏览器可能会拒绝执行该脚本。
MIME 是 Multipurpose Internet Mail Extensions(多用途互联网邮件扩展)的缩写,最初用于扩展电子邮件以支持非纯文本内容(如附件、不同字符集)。后来这一“内容类型标识”的机制被 HTTP 等网络协议广泛沿用,因此有了常说的 MIME type。
Content-Type/MIME 类型的经典技术书)