SVGZ files are already compressed

Disable gzip function for them
Regression d2f4e5c68f
This commit is contained in:
Léo Colombaro 2019-03-09 15:08:44 +01:00
parent 3b0c4c41df
commit cec616a103
No known key found for this signature in database
GPG Key ID: 687B480A6D4F735F
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
# ----------------------------------------------------------------------
# | SVGZ Compression |
# ----------------------------------------------------------------------
# SVGZ files are already compressed.
# Disable gzip function for `.svgz` files.
location ~* \.svgz$ {
gzip off;
add_header Content-Encoding gzip;
include h5bp/security/x-content-type-options.conf;
include h5bp/web_performance/no-transform.conf;
include h5bp/cross-origin/requests.conf;
}

View File

@ -20,6 +20,7 @@ server {
gzip_min_length 1;
include h5bp/location/web_performance_filename-based_cache_busting.conf;
include h5bp/location/web_performance_svgz-compression.conf;
include h5bp/errors/custom_errors.conf;
location ~* /test-pre-gzip {