How do I disable Brotli compression

Brotli compression is now enabled on all MyHost shared hosting servers to make your website load faster and reduce bandwidth usage. However, if you need to temporarily disable Brotli compression to help with testing, you can easily do so by making a few changes to your .htaccess

    1. Login to cPanelhttps://myhost-clients.com/knowledgebase/19/How-do-I-login-to-cPanel.html
    2. Open File Manager
      • Under the Files section, click File Manager.
      • Navigate to the public_html folder (or the folder where your website files are stored if this is an Addon Domain).
    3. Edit the .htaccess File
      • Locate the .htaccess file in your website’s root directory
      • If you can’t see it, enable Show Hidden Files from the Settings menu in the top-right corner
      • Right-click the .htaccess file and select Edit.
    4. Add the Brotli Disable Rule
      • At the top of your .htaccess file, add the following lines:
      • <IfModule brotli_module>
          SetEnv no-brotli
        </IfModule>

5.Click Save Changes in the editor.

6. Clear your browser cache and test your website again.

Re-Enabling Brotli Later

To re-enable Brotli compression, simply remove the lines you added above.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What database settings do I use for scripts?

Server Hostname: localhost Database Username: <your username>_<database name> e.g....

How do I add a wildcard subdomain for Wordpress MU?

This can be easily done by logging into your cPanel control panel and clicking on "Subdomains"....

Do you support Silverstripe Hosting?

Yes, we run Linux servers designed to run the New Zealand developed Silverstripe application. If...

Strict Standards Errors for PHP

If you are getting errors similar to:Strict Standards: Non-static method JLoader::import() should...

Fix permissions of all directories and files

To change all the directories to 755 (-rwxr-xr-x): find /home/xxx/public_html -type d -exec...