From 20d025f7f684e6ab756fee77987730b31f2e4867 Mon Sep 17 00:00:00 2001 From: Philipp Becker Date: Tue, 21 Jul 2015 10:42:40 +0200 Subject: [PATCH 1/2] Minor extension of the alphabetical sorting of media types --- mime.types | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mime.types b/mime.types index 32abdf1..b295c78 100644 --- a/mime.types +++ b/mime.types @@ -41,15 +41,15 @@ types { image/vnd.wap.wbmp wbmp; image/webp webp; image/x-jng jng; - video/3gpp 3gpp 3gp; - video/mp4 f4v f4p m4v mp4; + video/3gpp 3gp 3gpp; + video/mp4 f4p f4v m4v mp4; video/mpeg mpeg mpg; video/ogg ogv; video/quicktime mov; video/webm webm; video/x-flv flv; video/x-mng mng; - video/x-ms-asf asx asf; + video/x-ms-asf asf asx; video/x-ms-wmv wmv; video/x-msvideo avi; @@ -90,11 +90,11 @@ types { # Other - application/java-archive jar war ear; + application/java-archive ear jar war; application/mac-binhex40 hqx; application/octet-stream bin deb dll dmg exe img iso msi msm msp safariextz; application/pdf pdf; - application/postscript ps eps ai; + application/postscript ai eps ps; application/rtf rtf; application/vnd.google-earth.kml+xml kml; application/vnd.google-earth.kmz kmz; @@ -109,20 +109,20 @@ types { application/x-makeself run; application/x-opera-extension oex; application/x-perl pl pm; - application/x-pilot prc pdb; + application/x-pilot pdb prc; application/x-rar-compressed rar; application/x-redhat-package-manager rpm; application/x-sea sea; application/x-shockwave-flash swf; application/x-stuffit sit; application/x-tcl tcl tk; - application/x-x509-ca-cert der pem crt; + application/x-x509-ca-cert crt der pem; application/x-xpinstall xpi; application/xhtml+xml xhtml; application/xslt+xml xsl; application/zip zip; text/css css; - text/html html htm shtml; + text/html htm html shtml; text/mathml mml; text/plain txt; text/vcard vcard vcf; From f719f3e8e4735451a4ed32eb8d97c0bce7c6e3e2 Mon Sep 17 00:00:00 2001 From: Philipp Becker Date: Tue, 21 Jul 2015 11:34:05 +0200 Subject: [PATCH 2/2] Update media types in `nginx.conf` --- nginx.conf | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/nginx.conf b/nginx.conf index be0c71c..41ed3d3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -39,7 +39,7 @@ http { default_type application/octet-stream; # Update charset_types due to updated mime.types - charset_types text/xml text/plain text/vnd.wap.wml application/x-javascript application/rss+xml text/css application/javascript application/json; + charset_types text/css text/plain text/vnd.wap.wml application/javascript application/json application/rss+xml application/xml; # Format to use in log files log_format main '$remote_addr - $remote_user [$time_local] "$request" ' @@ -96,32 +96,25 @@ http { application/json application/ld+json application/manifest+json - application/rdf+xml application/rss+xml - application/schema+json application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf - application/x-javascript application/x-web-app-manifest+json application/xhtml+xml application/xml - font/eot font/opentype image/bmp image/svg+xml - image/vnd.microsoft.icon image/x-icon text/cache-manifest text/css - text/javascript text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component - text/x-cross-domain-policy - text/xml; + text/x-cross-domain-policy; # text/html is always compressed by HttpGzipModule # This should be turned on if you are going to have pre-compressed copies (.gz) of