server-configs-nginx/h5bp/web_performance/pre-compressed_content_gzip...

14 lines
572 B
Nginx Configuration File
Raw Permalink Normal View History

# ----------------------------------------------------------------------
# | GZip pre-compressed content |
# ----------------------------------------------------------------------
2020-04-14 11:53:56 +02:00
# Serve gzip compressed CSS, JS, HTML, SVG, ICS, and JSON files if they exist
# and if the client accepts gzip encoding.
#
# (!) To make this part relevant, you need to generate encoded files by your
# own. Enabling this part will not auto-generate gziped files.
#
# https://nginx.org/en/docs/http/ngx_http_gzip_static_module.html
gzip_static on;