Knowledge base

1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!

Manage Gzip / Brotli compression

This guide explains how to enable the compression of your resources (CSS, HTML, JSON, JS) to speed up the loading of your Web Hosting.

 

Preamble

  • By compressing your files, you reduce their size by up to 70%, which decreases the transfer time to your visitors' browsers.
  • Display speed is a major criterion for search engines like Google.
  • The Infomaniak Manager takes care of modifying your .htaccess and .user.ini files.
    • A backup copy is automatically created for security.
    • The modification can take up to 5 minutes to propagate across the entire infrastructure.

 

Enable Gzip / Brotli compression

The procedure via the Manager enables the most efficient compression algorithms supported by your browser (Gzip or Brotli) :

  1. Click here to access the management of your site on the Infomaniak Manager (need help?).
  2. Click directly on the name assigned to the site in question.
  3. Click on Advanced in the left sidebar.
  4. Click on the Apache tab:
  5. Enable the File Compression option.
  6. Click on Save at the bottom of the page:

 

Check if the compression header is active

Once enabled, your server will send an HTTP header Content-Encoding: gzip (or br for Brotli). You can test your site with these tools:


Has this FAQ been helpful?