# Enable Gzip from Origin

Enable Gzip From Origin allows the CDN to request text-based files from your origin using the `Accept-Encoding: gzip` header.

{% hint style="info" %}
This feature is available for Small, Large, and Dynamic CDN Resources.
{% endhint %}

If the origin supports gzip, the CDN stores the compressed version in cache; otherwise, it stores the uncompressed response.

{% hint style="info" %}
This feature does not control CDN → client compression.\
For client-side compression, see [How to Configure Gzip and Brotli](/products/performance-cdn/static-content-delivery/advanced-configuration/compression/how-to-configure-gzip-and-brotli.md).
{% endhint %}

Enable Gzip From Origin instructs the CDN to request text-based files from your origin using:

```
Accept-Encoding: gzip
```

When enabled:

• The CDN requests gzip-compressed content from the origin.\
• If the origin supports gzip, the CDN stores the compressed version in cache.\
• If the origin does not support gzip, the CDN stores the uncompressed response.

This improves performance and reduces bandwidth usage between the **Origin → CDN** path.

### How It Works

<figure><img src="/files/Gu9D1S8A0rYxcTJsz5ty" alt="" width="563"><figcaption><p>CDN requests gzip-compressed content from the origin when this feature is enabled.</p></figcaption></figure>

The CDN sends `Accept-Encoding: gzip` to the origin.\
If the origin supports gzip, compressed content is returned and stored in the cache.\
If the origin does not support gzip, the CDN caches the uncompressed response.

{% hint style="info" %}
Applies only to text-based MIME types (`.js`, `.css`, `.html`, `.txt`, `.xml`, `.json`, …).\
Does not apply to images. Use [Image Optimization](/products/performance-cdn/image-optimization-and-webp.md) instead.
{% endhint %}

### Enable Gzip from Origin

You can enable this feature via the [Medianova Control Panel](https://cloud.medianova.com)

{% stepper %}
{% step %}
**Open CDN Resources in the left-hand menu.**

This section lists all CDN Resources available in your account.
{% endstep %}

{% step %}
**Select a CDN Resource.**

{% hint style="info" %}
This feature is available for Small, Large, and Dynamic CDN Resources.
{% endhint %}
{% endstep %}

{% step %}
**Go to Advanced Configuration → Origin Settings.**

The tab displays all origin-related configuration options.
{% endstep %}

{% step %}
**Enable Gzip from Origin and click Submit.**

<figure><img src="/files/dhc6EyEqcytOFYxtxujy" alt=""><figcaption><p>Enable Gzip from Origin</p></figcaption></figure>

This action saves your configuration and activates gzip fetching for text files.
{% endstep %}
{% endstepper %}

Medianova CDN starts sending the `Accept-Encoding: gzip` header to your origin for eligible file types.

## **FAQ**

**Does this feature compress content for end-users?**\
No. It only optimizes the origin → CDN transfer.\
Client-side compression is handled separately by [Gzip Delivery and Brotli Delivery](/products/performance-cdn/static-content-delivery/advanced-configuration/compression/how-to-configure-gzip-and-brotli.md).

**What if my origin does not support gzip?**\
The CDN will fetch and cache the uncompressed version of the file.

**Does this apply to all file types?**\
No. The feature applies only to text-based MIME types.\
Images are not affected and require Image Optimization.


---

# 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/origin-settings/enable-gzip-from-origin.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.
