MIME-TYPE

MIME (Multipurpose Internet Mail Extensions) 是描述消息内容类型的因特网标准

  •   MIME-type和Content-Type的关系:

当web服务器(如nginx)收到静态的资源文件请求时,

依据请求文件的后缀名在服务器的MIME配置文件中找到对应的MIME Type,

再根据MIME Type设置HTTP Response的Content-Type

然后浏览器根据Content-Type的值处理文件

MIME参考手册

原文地址:https://www.cnblogs.com/itplay/p/11927811.html