-
-
Save gmetais/971ce13a1fbeebd88445 to your computer and use it in GitHub Desktop.
This list was moved to https://letstalkaboutwebperf.com/en/gzip-brotli-server-config/ |
ma conf en formation perf (+ la syntaxe Apache 2) :
activer mod_deflate mod_headers
SetOutputFilter DEFLATE
DeflateCompressionLevel 9
activer mod_filter
texte (plain), xml, javascript
AddOutputFilterByType DEFLATE text/*
JSON
AddOutputFilterByType DEFLATE application/json application/x-javascript application/javascript
fonts eot, ttf et .ico
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject application/x-font-ttf application/x-font-opentype application/x-font-truetype font/eot font/opentype font/otf
icones
AddOutputFilterByType DEFLATE image/x-icon image/vnd.microsoft.icon
XML
AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml application/rss+xml application/atom_xml
tu avais déjà tout trouvé en fait :)
Je mets juste un wildcard sur text/*
merci messieurs ! C'est, juste ce que je cherchais
Attention, n'utilisez pas de text/*
! Ça ne marche pas. Précisez plutôt text/html
etc. explicitement. Ça m'a pris une heure pour comprendre ça.
Achtung, bitte nicht text/*
verwenden! Das funktioniert nicht. Lieber text/html
usw. explizit angeben. Hat mich ne Stunde gekostet, dass herauszufinden.
Attention, please do not use text/*
! This isn't working. Rather specify text/html
etc. explicitly. Took me an hour to figure that out.
Apache 2.4.18.
The EOT font format is sometime compressed, not always.