From 61fa2f40539a6b737477dfaad74af10772587204 Mon Sep 17 00:00:00 2001 From: Edi Septriyanto Date: Sat, 12 Feb 2022 09:57:42 +0700 Subject: [PATCH] Set _min_lenght to 1kb --- etc/nginx/includes/compression_brotli.conf | 4 ++-- etc/nginx/includes/compression_gzip.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/nginx/includes/compression_brotli.conf b/etc/nginx/includes/compression_brotli.conf index f3d6d3f..92b0ee0 100644 --- a/etc/nginx/includes/compression_brotli.conf +++ b/etc/nginx/includes/compression_brotli.conf @@ -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"; diff --git a/etc/nginx/includes/compression_gzip.conf b/etc/nginx/includes/compression_gzip.conf index 30d0670..f308621 100644 --- a/etc/nginx/includes/compression_gzip.conf +++ b/etc/nginx/includes/compression_gzip.conf @@ -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";