|
| 1 | +types { |
| 2 | + |
| 3 | + # Data interchange |
| 4 | + |
| 5 | + application/atom+xml atom; |
| 6 | + application/json json map topojson; |
| 7 | + application/ld+json jsonld; |
| 8 | + application/rss+xml rss; |
| 9 | + application/vnd.geo+json geojson; |
| 10 | + application/xml rdf xml; |
| 11 | + |
| 12 | + |
| 13 | + # JavaScript |
| 14 | + |
| 15 | + # Normalize to standard type. |
| 16 | + # https://tools.ietf.org/html/rfc4329#section-7.2 |
| 17 | + application/javascript js; |
| 18 | + |
| 19 | + |
| 20 | + # Manifest files |
| 21 | + |
| 22 | + application/manifest+json webmanifest; |
| 23 | + application/x-web-app-manifest+json webapp; |
| 24 | + text/cache-manifest appcache; |
| 25 | + |
| 26 | + |
| 27 | + # Media files |
| 28 | + |
| 29 | + audio/midi mid midi kar; |
| 30 | + audio/mp4 aac f4a f4b m4a; |
| 31 | + audio/mpeg mp3; |
| 32 | + audio/ogg oga ogg opus; |
| 33 | + audio/x-realaudio ra; |
| 34 | + audio/x-wav wav; |
| 35 | + image/bmp bmp; |
| 36 | + image/gif gif; |
| 37 | + image/jpeg jpeg jpg; |
| 38 | + image/jxr jxr hdp wdp; |
| 39 | + image/png png; |
| 40 | + image/svg+xml svg svgz; |
| 41 | + image/tiff tif tiff; |
| 42 | + image/vnd.wap.wbmp wbmp; |
| 43 | + image/webp webp; |
| 44 | + image/x-jng jng; |
| 45 | + video/3gpp 3gp 3gpp; |
| 46 | + video/mp4 f4p f4v m4v mp4; |
| 47 | + video/mpeg mpeg mpg; |
| 48 | + video/ogg ogv; |
| 49 | + video/quicktime mov; |
| 50 | + video/webm webm; |
| 51 | + video/x-flv flv; |
| 52 | + video/x-mng mng; |
| 53 | + video/x-ms-asf asf asx; |
| 54 | + video/x-ms-wmv wmv; |
| 55 | + video/x-msvideo avi; |
| 56 | + |
| 57 | + # Serving `.ico` image files with a different media type |
| 58 | + # prevents Internet Explorer from displaying then as images: |
| 59 | + # https://github.com/h5bp/html5-boilerplate/commit/37b5fec090d00f38de64b591bcddcb205aadf8ee |
| 60 | + |
| 61 | + image/x-icon cur ico; |
| 62 | + |
| 63 | + |
| 64 | + # Microsoft Office |
| 65 | + |
| 66 | + application/msword doc; |
| 67 | + application/vnd.ms-excel xls; |
| 68 | + application/vnd.ms-powerpoint ppt; |
| 69 | + application/vnd.openxmlformats-officedocument.wordprocessingml.document docx; |
| 70 | + application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx; |
| 71 | + application/vnd.openxmlformats-officedocument.presentationml.presentation pptx; |
| 72 | + |
| 73 | + |
| 74 | + # Web fonts |
| 75 | + |
| 76 | + application/font-woff woff; |
| 77 | + application/font-woff2 woff2; |
| 78 | + application/vnd.ms-fontobject eot; |
| 79 | + |
| 80 | + # Browsers usually ignore the font media types and simply sniff |
| 81 | + # the bytes to figure out the font type. |
| 82 | + # https://mimesniff.spec.whatwg.org/#matching-a-font-type-pattern |
| 83 | + # |
| 84 | + # However, Blink and WebKit based browsers will show a warning |
| 85 | + # in the console if the following font types are served with any |
| 86 | + # other media types. |
| 87 | + |
| 88 | + application/x-font-ttf ttc ttf; |
| 89 | + font/opentype otf; |
| 90 | + |
| 91 | + |
| 92 | + # Other |
| 93 | + |
| 94 | + application/java-archive ear jar war; |
| 95 | + application/mac-binhex40 hqx; |
| 96 | + application/octet-stream bin deb dll dmg exe img iso msi msm msp safariextz; |
| 97 | + application/pdf pdf; |
| 98 | + application/postscript ai eps ps; |
| 99 | + application/rtf rtf; |
| 100 | + application/vnd.google-earth.kml+xml kml; |
| 101 | + application/vnd.google-earth.kmz kmz; |
| 102 | + application/vnd.wap.wmlc wmlc; |
| 103 | + application/x-7z-compressed 7z; |
| 104 | + application/x-bb-appworld bbaw; |
| 105 | + application/x-bittorrent torrent; |
| 106 | + application/x-chrome-extension crx; |
| 107 | + application/x-cocoa cco; |
| 108 | + application/x-java-archive-diff jardiff; |
| 109 | + application/x-java-jnlp-file jnlp; |
| 110 | + application/x-makeself run; |
| 111 | + application/x-opera-extension oex; |
| 112 | + application/x-perl pl pm; |
| 113 | + application/x-pilot pdb prc; |
| 114 | + application/x-rar-compressed rar; |
| 115 | + application/x-redhat-package-manager rpm; |
| 116 | + application/x-sea sea; |
| 117 | + application/x-shockwave-flash swf; |
| 118 | + application/x-stuffit sit; |
| 119 | + application/x-tcl tcl tk; |
| 120 | + application/x-x509-ca-cert crt der pem; |
| 121 | + application/x-xpinstall xpi; |
| 122 | + application/xhtml+xml xhtml; |
| 123 | + application/xslt+xml xsl; |
| 124 | + application/zip zip; |
| 125 | + text/css css; |
| 126 | + text/csv csv; |
| 127 | + text/html htm html shtml; |
| 128 | + text/markdown md; |
| 129 | + text/mathml mml; |
| 130 | + text/plain txt; |
| 131 | + text/vcard vcard vcf; |
| 132 | + text/vnd.rim.location.xloc xloc; |
| 133 | + text/vnd.sun.j2me.app-descriptor jad; |
| 134 | + text/vnd.wap.wml wml; |
| 135 | + text/vtt vtt; |
| 136 | + text/x-component htc; |
| 137 | + |
| 138 | +} |
0 commit comments