> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/performance-cdn/image-optimization-and-webp/gzip-compression.md).

# Gzip Compression

**Gzip Compression** reduces the size of eligible HTTP responses before they are delivered to clients. This decreases bandwidth usage and improves page load performance for content that can be efficiently compressed.

You can configure Gzip Compression in the [Medianova Control Panel](https://cloud.medianova.com).

Navigate to the relevant CDN Resource and open the **Image Optimization** section.

<figure><img src="/files/bXC8lIqMBDiOi7Hl2pmi" alt=""><figcaption></figcaption></figure>

### Configure Gzip Compression

Use the following steps to enable compression and define eligible content types.

{% stepper %}
{% step %}

### Enable Gzip Compression

Toggle **Status** to **On**.

<figure><img src="/files/JS7Np8izP2F18aWv5tDs" alt="" width="411"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Add Content Types

Enter one or more MIME types that should be compressed.

Examples:

* text/html
* text/css
* application/javascript
* application/json
* image/svg+xml

Select **+** to add additional content types.
{% endstep %}

{% step %}

### Save the Configuration

Click **Submit** to apply the configuration.
{% endstep %}
{% endstepper %}

### Behaviour

* Compression is applied only when the client supports Gzip encoding.
* Only configured content types are eligible for compression.
* Compressed responses are delivered using the `Content-Encoding: gzip` header.
* Unsupported content types are delivered without modification.
* Compression affects client delivery and does not modify the original content stored at the origin.

### Recommended Content Types

Commonly compressed content types include:

* text/html
* text/css
* text/plain
* application/javascript
* application/json
* application/xml
* image/svg+xml

### Limitations

* Binary formats typically do not benefit from Gzip compression.
* Formats such as JPEG, PNG, GIF, MP4, ZIP and PDF are generally already compressed.
* Compression efficiency depends on content type and response size.

### FAQ

**Does Gzip Compression modify files stored on the origin?**\
No. Compression is applied dynamically during content delivery.

**Does Gzip Compression work for all file types?**\
No. Only configured content types are eligible for compression.

**Should images be compressed with Gzip?**\
Most image formats are already compressed and generally do not benefit from Gzip compression. SVG files are a common exception.

**What happens if the browser does not support Gzip?**\
The CDN delivers the uncompressed version of the response.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://clients.medianova.com/products/performance-cdn/image-optimization-and-webp/gzip-compression.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
