Set _min_lenght to 1kb

This commit is contained in:
Edi Septriyanto
2022-02-12 09:57:42 +07:00
parent cd43f2a3af
commit 61fa2f4053
2 changed files with 4 additions and 4 deletions

View File

@@ -66,9 +66,9 @@ brotli_buffers 16 8k;
brotli_window 512k;
# Up the minimum length a little to account for gzip overhead
# this means anything smaller than 50 bytes won't be compressed.
# this means anything smaller than 1024 bytes won't be compressed.
# The default is 20 bytes, which is sooo tiny it's a waste to compress.
brotli_min_length 64;
brotli_min_length 1024;
# Custom header.
add_header X-Powered-By "LEMPer/Brotli";

View File

@@ -79,9 +79,9 @@ gzip_vary on;
gzip_buffers 16 8k;
# Up the minimum length a little to account for gzip overhead
# this means anything smaller than 50 bytes won't be compressed.
# this means anything smaller than 1024 bytes won't be compressed.
# The default is 20 bytes, which is sooo tiny it's a waste to compress.
gzip_min_length 64;
gzip_min_length 1024;
# Custom header.
add_header X-Powered-By "LEMPer/Gzip";