> 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

Compress eligible responses using Gzip to reduce bandwidth usage and improve content delivery performance.

**Gzip Compression** compresses eligible responses before they are delivered to clients. When enabled, Medianova CDN applies Gzip compression to configured content types when the client indicates support for compressed content.

{% hint style="info" %}
You can define which MIME types are eligible for compression by configuring the content type list.
{% endhint %}

Gzip Compression is configured per CDN Resource in the [Medianova Control Panel](https://cloud.medianova.com).

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fgit-blob-9723b243c2d8ef16803c327411dcbb63238743bd%2Fimage%20(6)%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

## Configure Gzip Compression

{% stepper %}
{% step %}

### Open Text Optimization

Open your CDN Resource and navigate to **Optimization → Text**.
{% endstep %}

{% step %}

### Enable Gzip Compression

Enable the **Gzip Compression** toggle.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FGhUp3yOyl7zn6qYwe3Mz%2Fimage.png?alt=media&amp;token=8266a77c-f23b-485b-9536-2e57ab4505e1" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure Content Types

Review the configured content types and add or remove MIME types as required.

To add a content type, enter the MIME type in the **Content Type** field and select **+**.

Common text-based content types include:

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

Avoid adding formats that are already compressed, such as JPEG, PNG, GIF, MP4, ZIP, and PDF, unless required for a specific use case.
{% endstep %}

{% step %}

### Save the Configuration

Select **Save** in the pending changes bar.

Review the pending configuration changes and confirm the update.
{% endstep %}
{% endstepper %}

## Compression Behavior

When Gzip Compression is enabled:

* The CDN applies Gzip compression to configured content types when the client indicates support for compressed content.
* Eligible compressed responses are delivered with the `Content-Encoding: gzip` response header.
* Clients that do not support Gzip receive an uncompressed response.
* Compression is applied during content delivery and does not modify the original content at the origin.

## Content Type Considerations

Gzip is most effective for text-based content such as HTML, CSS, JavaScript, JSON, XML, and SVG.

Formats that already use compression typically receive little or no benefit from additional Gzip compression. These commonly include:

* GIF
* JPEG
* MP4
* PDF
* PNG
* ZIP

Avoid unnecessarily broad content type configurations because they can introduce additional processing without providing meaningful compression benefits.

## Benefits

* Reduces bandwidth consumption.
* Reduces transfer size for compressible content.
* Improves delivery performance for text-based content.

## Important Notes

* Only configured content types are eligible for Gzip compression.
* Compression depends on client support for Gzip encoding.
* Compression efficiency varies according to content type and response size.
* Original files at the origin remain unchanged.

## Related Concepts

* [Compression](/products/performance-cdn/static-content-delivery/advanced-configuration/compression.md)
* [How to Configure Gzip and Brotli](/products/performance-cdn/static-content-delivery/advanced-configuration/compression/how-to-configure-gzip-and-brotli.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
