zoukankan      html  css  js  c++  java
  • 常用Content-type汇总

      Content-Type,内容类型,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件。这里汇总一下常用的,所有资料来源于网络,未经测试:

     文件后缀 处理方式 
    .* application/octet-stream
     .asp text/asp 
    .avi video/avi 
     .bmp application/x-bmp
    .css text/css 
    .doc application/msword 
     .docx  application/vnd.openxmlformats-officedocument.wordprocessingml.template  
    .exe application/x-msdownload 
    .gif image/gif 
    .html/.htm/.jsp/.xhtml text/html 
    .java  java/* 
    .jpeg/.jpg  image/jpeg 
    .jpg  application/x-jpg 
    .ppt application/vnd.ms-powerpoint 或 application/x-ppt
    .pptx application/vnd.openxmlformats-officedocument.presentationml.presentation 
    .rmvb application/vnd.rn-realmedia-vbr 
     .svg/.xml text/xml 
    .swf application/x-shockwave-flash 
    .txt text/plain 
    .wav audio/wav 
    .xls  application/vnd.ms-excel 或 application/x-xls
    .xlsx  application/vnd.openxmlformats-officedocument.spreadsheetml.sheet 
  • 相关阅读:
    1.3.9、通过权重 Weight匹配
    1.3.8、通过RemoteAddr匹配
    1.3.7、通过QueryParam匹配
    1.3.6、通过Path匹配
    1.3.5、通过Method匹配
    1.3.4、通过Host匹配
    css选择器优先级如何计算
    pm2常用命令
    前端微服务 二
    前端微服务
  • 原文地址:https://www.cnblogs.com/aotian/p/4601500.html
Copyright © 2011-2022 走看看