SVGZ files are already compressed
Disable gzip function for them
Regression d2f4e5c68f
This commit is contained in:
parent
3b0c4c41df
commit
cec616a103
|
@ -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;
|
||||
}
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue