# Range Based Caching

Range Based Caching allows the CDN to cache and deliver content in byte-range segments rather than requiring the entire file to be fetched or cached. This improves performance for large files such as videos, archives, or software downloads by serving only the requested portions.

You can manage Range Based Caching in the [Medianova Control Panel](https://cloud.medianova.com) or via [API](https://clients.medianova.com/api-documentation/performance-cdn/caching#put-api-v1-cdn-organization_uuid-resource-resource_uuid-8).

Select a CDN resource in the CDN section, and navigate to the **Caching** tab.

## Configure Range Based Caching

{% stepper %}
{% step %}
**Enable Range Based Caching**

Toggle **Range Based Caching** to **On** to allow the CDN to cache partial byte-range segments.

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

{% step %}
**Select Segment Size**

Choose a **Segment Size** value to define how large each cached byte-range segment should be.\
This determines how the CDN partitions and stores partial content.
{% endstep %}

{% step %}
**Save the Configuration**

Click **Submit** to apply the Range Based Caching settings.
{% endstep %}
{% endstepper %}

## Behaviour

* The CDN caches content in fixed-size byte segments defined by **Segment Size**.
* Requests for ranges within the same segment are served directly from cache.
* Useful for video playback, downloads, and large binary files where clients request only parts of a resource.
* A smaller segment size increases cache precision but may increase the number of stored segments.

## FAQ

**Does Range Based Caching improve video streaming performance?**\
Yes. It prevents the CDN from fetching the entire file when only a portion is requested, improving responsiveness.

**What happens if I change the Segment Size?**\
New segment size applies only to future cached segments. Existing segments remain until evicted.

**Is this feature required for byte-range requests to work?**\
Byte-range requests work regardless, but enabling Range Based Caching ensures partial responses can come from cache instead of the origin.


---

# 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/caching/range-based-caching.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.
