Last active
February 28, 2021 14:06
-
-
Save gmetais/971ce13a1fbeebd88445 to your computer and use it in GitHub Desktop.
This is a list of Content-Type / mime-type for a server Gzip/Brotli compression configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This list was moved to https://letstalkaboutwebperf.com/en/gzip-brotli-server-config/ |
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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