-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pre-compressed content usage config files
Closes #231
- Loading branch information
Showing
4 changed files
with
31 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# ---------------------------------------------------------------------- | ||
# | Brotli pre-compressed content | | ||
# ---------------------------------------------------------------------- | ||
|
||
# Serve brotli compressed files if they exist and if the client accepts brotli | ||
# encoding. | ||
# | ||
# (!) To make this part relevant, you need to generate encoded files by your | ||
# own. Enabling this part will not auto-generate brotlied files. | ||
# | ||
# Note that some clients (eg. 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ---------------------------------------------------------------------- | ||
# | GZip pre-compressed content | | ||
# ---------------------------------------------------------------------- | ||
|
||
# Serve gzip compressed 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters