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

18 lines
732 B
Nginx Configuration File
Raw Permalink Normal View History

# ----------------------------------------------------------------------
# | Brotli pre-compressed content |
# ----------------------------------------------------------------------
2020-04-14 11:53:56 +02:00
# Serve brotli compressed CSS, JS, HTML, SVG, ICS and JSON files if they exist
# and if the client accepts br encoding.
#
# (!) To make this part relevant, you need to generate encoded files by your
# own. Enabling this part will not auto-generate brotlied files.
#
2020-12-29 19:20:35 +01:00
# Note that some clients (e.g. browsers) require a secure connection to request
# brotli-compressed resources.
# https://www.chromestatus.com/feature/5420797577396224
#
# https://github.com/eustas/ngx_brotli/#brotli_static
brotli_static on;