标签:
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 |
标签:
原文地址:http://www.cnblogs.com/aotian/p/4601500.html