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

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

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

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

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

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

 

MIME参考手册

 

相关文章:

  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-01-17
猜你喜欢
  • 2021-07-30
  • 2021-08-11
  • 2021-05-18
  • 2022-12-23
  • 2021-11-10
  • 2021-08-18
  • 2021-05-19
相关资源
相似解决方案