Add to and fix typo in MIME types to be gzipped:

Add text/x-component.  It's listed in html5-boilerplate/.htaccess and is in our nginx-mime.types
Fix application/xml+rss, should be application/rss+xml
Comment indicating text/html is always compressed, so there's no need to include it
This commit is contained in:
Paul Sarena 2011-02-02 07:21:18 +08:00 committed by Paul Irish
parent f4bc3a9dc6
commit 5827b0c16a
1 changed files with 15 additions and 1 deletions

View File

@ -67,7 +67,21 @@ http {
gzip_min_length 1100; gzip_min_length 1100;
gzip_buffers 4 8k; gzip_buffers 4 8k;
gzip_proxied any; gzip_proxied any;
gzip_types text/plain text/xml application/xml application/xml+rss text/css text/javascript application/javascript application/json image/svg+xml font/truetype font/opentype application/vnd.ms-fontobject; gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/json
application/xml
application/rss+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
gzip_static on; gzip_static on;