Skip to content

Commit a18b7b5

Browse files
author
Gaurav Ashtikar
committed
Merge pull request #423 from cborgia-pull-requests/master
include more gzip types
2 parents dbf1707 + c0e5bb8 commit a18b7b5

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

ee/cli/templates/nginx-core.mustache

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,21 @@ gzip_proxied any;
3636
gzip_comp_level 6;
3737
gzip_buffers 16 8k;
3838
gzip_http_version 1.1;
39-
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
39+
# Compress all output labeled with one of the following MIME-types.
40+
gzip_types
41+
application/atom+xml
42+
application/javascript
43+
application/json
44+
application/rss+xml
45+
application/vnd.ms-fontobject
46+
application/x-font-ttf
47+
application/x-web-app-manifest+json
48+
application/xhtml+xml
49+
application/xml
50+
font/opentype
51+
image/svg+xml
52+
image/x-icon
53+
text/css
54+
text/plain
55+
text/x-component;
56+
# text/html is always compressed by HttpGzipModule

0 commit comments

Comments
 (0)