共 72 条。扩展名和 MIME 类型不一定一一对应;实际传输时以响应头 Content-Type 和内容格式为准。
| 扩展名 / 场景 | MIME 类型 | 说明 |
|---|---|---|
.html .htm | text/html | HTML 文档 |
.css | text/css | CSS 样式 |
.js .mjs | text/javascript | JavaScript |
.json .map | application/json | JSON 数据 |
.jsonld | application/ld+json | JSON-LD |
.xml | application/xml | XML 文档 |
.txt .log | text/plain | 纯文本 |
.csv | text/csv | CSV 表格 |
.tsv | text/tab-separated-values | TSV 表格 |
.md | text/markdown | Markdown |
.ics | text/calendar | 日历 |
.yaml .yml | application/yaml | YAML |
.pdf | application/pdf | PDF 文档 |
.rtf | application/rtf | 富文本 |
.doc | application/msword | Word 旧版 |
.docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document | Word 文档 |
.xls | application/vnd.ms-excel | Excel 旧版 |
.xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | Excel 工作簿 |
.ppt | application/vnd.ms-powerpoint | PowerPoint 旧版 |
.pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation | PowerPoint 演示 |
.odt | application/vnd.oasis.opendocument.text | OpenDocument 文本 |
.ods | application/vnd.oasis.opendocument.spreadsheet | OpenDocument 表格 |
.odp | application/vnd.oasis.opendocument.presentation | OpenDocument 演示 |
.jpg .jpeg | image/jpeg | JPEG 图像 |
.png | image/png | PNG 图像 |
.gif | image/gif | GIF 图像 |
.svg | image/svg+xml | SVG 图像 |
.webp | image/webp | WebP 图像 |
.avif | image/avif | AVIF 图像 |
.apng | image/apng | 动画 PNG |
.bmp | image/bmp | 位图 |
.ico | image/vnd.microsoft.icon | 图标 |
.tif .tiff | image/tiff | TIFF 图像 |
.heic | image/heic | HEIC 图像 |
.mp3 | audio/mpeg | MP3 音频 |
.wav | audio/wav | WAV 音频 |
.ogg .oga | audio/ogg | Ogg 音频 |
.opus | audio/ogg | Opus 音频 |
.m4a | audio/mp4 | MPEG-4 音频 |
.aac | audio/aac | AAC 音频 |
.flac | audio/flac | FLAC 音频 |
.mid .midi | audio/midi | MIDI |
.mp4 .m4v | video/mp4 | MP4 视频 |
.webm | video/webm | WebM 视频 |
.ogv | video/ogg | Ogg 视频 |
.mpeg .mpg | video/mpeg | MPEG 视频 |
.mov | video/quicktime | QuickTime 视频 |
.avi | video/x-msvideo | AVI 视频 |
.ts | video/mp2t | MPEG 传输流 |
.m3u8 | application/vnd.apple.mpegurl | HLS 播放列表 |
.zip | application/zip | ZIP 压缩包 |
.gz | application/gzip | Gzip |
.tar | application/x-tar | Tar 归档 |
.7z | application/x-7z-compressed | 7-Zip |
.rar | application/vnd.rar | RAR |
.bz2 | application/x-bzip2 | Bzip2 |
.xz | application/x-xz | XZ |
.epub | application/epub+zip | EPUB 电子书 |
.wasm | application/wasm | WebAssembly |
.bin .exe .dll | application/octet-stream | 通用二进制数据 |
.woff | font/woff | WOFF 字体 |
.woff2 | font/woff2 | WOFF2 字体 |
.ttf | font/ttf | TrueType 字体 |
.otf | font/otf | OpenType 字体 |
.eot | application/vnd.ms-fontobject | Embedded OpenType |
.webmanifest | application/manifest+json | Web 应用清单 |
.sh | application/x-sh | Shell 脚本 |
.php | application/x-httpd-php | PHP 源文件 |
.swf | application/x-shockwave-flash | Flash 文件(旧版) |
.form | application/x-www-form-urlencoded | 表单编码 |
multipart | multipart/form-data | 含文件的表单 |
events | text/event-stream | 服务器发送事件 |