# How to Configure Gzip and Brotli

{% hint style="info" %}
We recommend to always turn on Gzip and Brotli compression for small object delivery and dynamic content acceleration. All modern browsers support these content encodings and clients not supporting compression will receive the uncompressed version. Learn more about [compression at Medianova](/products/performance-cdn/static-content-delivery/advanced-configuration/compression.md).
{% endhint %}

In the [Medianova Panel](https://cloud.medianova.com/), select the appropriate CDN resource, navigate to the **Optimization** tab and select **Text Optimization**.

The page shows two content blocks, one for Brotli Compression and one for Gzip Compression:

<figure><img src="/files/kl1gLqRF2kEzng14aJpJ" alt="" width="563"><figcaption></figcaption></figure>

The following steps apply to both Brotli Compression and Gzip Compression.

{% stepper %}
{% step %}
**Toggle the Status to ON**

Click the Status toggle to turn on compression.

{% hint style="info" %}
Changing the toggle does not *immediately* change the CDN's behavior. You need to click **Submit** to push the updated config to the CDN
{% endhint %}
{% endstep %}

{% step %}
**Update the content types (optional)**

The page now shows a list of content types (or: [MIME types](https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types)) that are served compressed by default. You can add content types by typing the content-type in the **Add Content Type** field and clicking the **+** button.

Remove a content type by clicking the small **x** icon to the right of the content-type.
{% endstep %}

{% step %}
**Submit the changes**

Click the **Submit** button to push the updated config to the CDN.
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://clients.medianova.com/products/performance-cdn/static-content-delivery/advanced-configuration/compression/how-to-configure-gzip-and-brotli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
