Updated gzip_types and charset_types

… both are now using the same coding convention. Each type in its own row and `text/html` comment at the top (where all comments are placed).
This commit is contained in:
Tobias Reich 2016-08-20 17:17:01 +02:00 committed by GitHub
parent 3f4719b79a
commit 294e08557c
1 changed files with 9 additions and 2 deletions

View File

@ -38,7 +38,14 @@ http {
# Update charset_types to match updated mime.types.
# text/html is always included by charset module.
charset_types text/css text/plain text/vnd.wap.wml application/javascript application/json application/rss+xml application/xml;
charset_types
text/css
text/plain
text/vnd.wap.wml
application/javascript
application/json
application/rss+xml
application/xml;
# Include $http_x_forwarded_for within default format used in log files
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
@ -89,6 +96,7 @@ http {
gzip_vary on;
# Compress all output labeled with one of the following MIME-types.
# text/html is always compressed by gzip module.
gzip_types
application/atom+xml
application/javascript
@ -114,7 +122,6 @@ http {
text/vtt
text/x-component
text/x-cross-domain-policy;
# text/html is always compressed by gzip module
# This should be turned on if you are going to have pre-compressed copies (.gz) of
# static files available. If not it should be left off as it will cause extra I/O