From b86f26dc3411ad38d0ca1e12770d607be32849bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Toledo?= Date: Wed, 4 Feb 2026 20:46:44 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20Otimiza=20compacta=C3=A7=C3=A3o=20com?= =?UTF-8?q?=20gzip=5Fstatic=20e=20suporte=20a=20WASM/MJS=20para=20Pseudo-C?= =?UTF-8?q?DN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snippets/compression.conf | 68 ++++++++++++++------------------------- 1 file changed, 24 insertions(+), 44 deletions(-) diff --git a/snippets/compression.conf b/snippets/compression.conf index 7ef0a0e..3721df1 100644 --- a/snippets/compression.conf +++ b/snippets/compression.conf @@ -1,67 +1,47 @@ # --- Pathfinder Modern Compression Stack --- -# 1. Gzip (Fallback para navegadores antigos e compatibilidade) +# 1. Gzip (Fallback e Compatibilidade) gzip on; +gzip_static on; # Serve .gz se existir no disco (Ganho de CPU) gzip_vary on; gzip_proxied any; gzip_comp_level 6; -gzip_buffers 16 8k; -gzip_http_version 1.1; gzip_min_length 256; gzip_types - application/atom+xml + text/plain + text/css + text/xml + text/javascript application/javascript + application/x-javascript application/json - application/ld+json - application/manifest+json - application/rss+xml - application/vnd.geo+json - application/vnd.ms-fontobject - application/x-font-ttf - application/x-web-app-manifest+json - application/xhtml+xml application/xml - font/opentype - image/bmp + application/xml+rss + application/wasm image/svg+xml image/x-icon - text/cache-manifest - text/css - text/plain - text/vcard - text/vnd.rim.location.xloc - text/vtt - text/x-component - text/x-cross-domain-policy; + font/opentype + application/vnd.ms-fontobject + application/x-font-ttf; -# 2. Google Brotli (Próxima geração - Ativado onde suportado) -# Nota: Requer o módulo ngx_brotli compilado. +# 2. Google Brotli (Próxima Geração) brotli on; +brotli_static on; # Serve .br se existir no disco (Alta Performance) brotli_comp_level 6; -brotli_static on; brotli_min_length 256; brotli_types - application/atom+xml + text/plain + text/css + text/xml + text/javascript application/javascript + application/x-javascript application/json - application/ld+json - application/manifest+json - application/rss+xml - application/vnd.geo+json - application/vnd.ms-fontobject - application/x-font-ttf - application/x-web-app-manifest+json - application/xhtml+xml application/xml - font/opentype - image/bmp + application/xml+rss + application/wasm image/svg+xml image/x-icon - text/cache-manifest - text/css - text/plain - text/vcard - text/vnd.rim.location.xloc - text/vtt - text/x-component - text/x-cross-domain-policy; + font/opentype + application/vnd.ms-fontobject + application/x-font-ttf;