-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use brotli instead of gzip for compression in NGINX (#1593)
closes: #922
- Loading branch information
1 parent
b4b45af
commit a9c5766
Showing
7 changed files
with
63 additions
and
10 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
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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
gzip on; | ||
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | ||
gzip_proxied any; | ||
gzip_buffers 16 8k; | ||
gzip_types *; | ||
gzip_vary on; | ||
brotli on; | ||
brotli_comp_level 4; | ||
brotli_static on; | ||
brotli_types application/atom+xml application/javascript application/json application/vnd.api+json application/rss+xml | ||
application/vnd.ms-fontobject application/x-font-opentype application/x-font-truetype | ||
application/x-font-ttf application/x-javascript application/xhtml+xml application/xml | ||
font/eot font/opentype font/otf font/truetype image/svg+xml image/vnd.microsoft.icon | ||
image/x-icon image/x-win-bitmap text/css text/javascript text/plain text/xml; |
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