---
title: Enable Brotli Compression
description: "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: ``` AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/json…"
url: "https://know.cynderhost.com/docs/enable-brotli-compression/"
updated: "2021-11-14"
category: cPanel
---

# 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>
```
