Enable Brotli Compression

Brotli compression offers greater compression compared to GZIP. Here’s how you can enable Brotli on cPanel-based sites.

Add the following lines to your .htaccess file, at the very end:

<IfModule mod_brotli.c>
AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/json application/x-font-ttf application/vnd.ms-fontobject image/x-icon
</IfModule>