Compression (Gzip/Brotli)
Checks if the server compresses text responses.
Pourquoi est-ce important ?
Gzip compression typically reduces HTML size by 60-80%. Brotli is another 15-20% more efficient. Without compression, the server sends unnecessarily large files, increasing load time and bandwidth costs.
Comment le corriger ?
Enable Gzip or Brotli on your web server. Apache: mod_deflate or mod_brotli. Nginx: gzip on; or brotli on;. Cloudflare enables this automatically. Check the Content-Encoding response header to confirm.
Ce check note de 0 à 100. Sous 50 c’est un échec, 50 à 89 un avertissement, 90 ou plus c’est bon. Après chaque crawl vous voyez la note par page dans le rapport, avec une courte explication.
Questions fréquentes
Checks if the server compresses text responses.
Gzip compression typically reduces HTML size by 60-80%. Brotli is another 15-20% more efficient. Without compression, the server sends unnecessarily large files, increasing load time and bandwidth costs.
Enable Gzip or Brotli on your web server. Apache: mod_deflate or mod_brotli. Nginx: gzip on; or brotli on;. Cloudflare enables this automatically. Check the Content-Encoding response header to confirm.
Exemple
Copiez le code ci-dessous et adaptez le nom de domaine, la marque et le contenu à votre situation.
# Nginx: Brotli (best) + Gzip (fallback)
brotli on;
brotli_comp_level 6;
brotli_types text/html text/css application/javascript application/json image/svg+xml;
gzip on;
gzip_comp_level 5;
gzip_vary on;
gzip_types text/html text/css application/javascript application/json;
# Apache .htaccess
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json
</IfModule>