change order of compression

This commit is contained in:
William Blythe
2018-12-23 06:51:50 +11:00
parent 3894915740
commit 001fed67b7

View File

@@ -22,9 +22,6 @@ http {
error_log /tmp/error.log;
# https://nginx.org/en/docs/http/ngx_http_gzip_module.html
brotli on;
# brotli_static on;
brotli_types *;
# Enable gzip compression.
# Default: off
gzip on;
@@ -57,7 +54,9 @@ http {
# text/html is always compressed by gzip module.
# Default: text/html
gzip_types *;
brotli on;
# brotli_static on;
brotli_types *;
# 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
# for the check. It is best if you enable this in a location{} block for