54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
# --- Pathfinder Modern Compression Stack ---
|
|
|
|
# 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_min_length 256;
|
|
gzip_types
|
|
text/plain
|
|
text/css
|
|
text/xml
|
|
text/javascript
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/xml
|
|
application/rss+xml
|
|
application/atom+xml
|
|
application/ld+json
|
|
application/manifest+json
|
|
application/wasm
|
|
application/vnd.ms-fontobject
|
|
application/x-font-ttf
|
|
font/opentype
|
|
image/svg+xml
|
|
image/x-icon;
|
|
|
|
# 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_min_length 256;
|
|
brotli_types
|
|
text/plain
|
|
text/css
|
|
text/xml
|
|
text/javascript
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/xml
|
|
application/rss+xml
|
|
application/atom+xml
|
|
application/ld+json
|
|
application/manifest+json
|
|
application/wasm
|
|
application/vnd.ms-fontobject
|
|
application/x-font-ttf
|
|
font/opentype
|
|
image/svg+xml
|
|
image/x-icon;
|