> 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/static-content-delivery/advanced-configuration/caching/shared-cache.md). Agents can also search and read this documentation through its [MCP server](https://clients.medianova.com/~gitbook/mcp).

# Shared Cache

Configure whether a CDN Resource uses its default cache configuration or shares cached content with other resources through a Shared Cache Domain.

**Shared Cache** allows participating CDN Resources or accounts to reuse identical cached objects through a common cache configuration. This can reduce duplicate cache storage and unnecessary requests to the origin server.

You can configure Shared Cache through the [Medianova Control Panel](https://cloud.medianova.com) or the [API](https://clients.medianova.com/api-documentation/performance-cdn/caching#put-api-v1-cdn-organization_uuid-resource-resource_uuid-5).

{% hint style="warning" %}
Shared Cache should be used only when participating resources serve identical content and use compatible cache key configurations. Sharing cached objects between resources with different content or cache key requirements can result in incorrect responses.
{% endhint %}

## Shared Cache Modes

Shared Cache supports two status options:

<table><thead><tr><th width="172.5">Status</th><th>Behavior</th></tr></thead><tbody><tr><td><strong>Default</strong></td><td>Uses the resource's default isolated cache configuration.</td></tr><tr><td><strong>Share</strong></td><td>Enables cache sharing with the selected Shared Cache Domain, allowing participating resources to reuse cached objects.</td></tr></tbody></table>

## Configuration Steps

{% stepper %}
{% step %}

### Open Shared Cache

Open your CDN Resource in the Medianova Control Panel and select **Caching**.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FWNgDHn28cICHmj9Agbod%2Fimage.png?alt=media&#x26;token=92c6e39c-5eee-4084-9eee-58d3004c8476" alt="Shared Cache configuration in the Medianova Control Panel"><figcaption><p>Shared Cache configuration.</p></figcaption></figure>
{% endstep %}

{% step %}

### Select the Status

Under **Status**, select one of the following:

* **Default** – Use the resource's default cache configuration.
* **Share** – Enable cache sharing with other participating resources.
  {% endstep %}

{% step %}

### Select the Shared Cache Domain

When **Share** is selected, the **Shared Cache Domain** field becomes available.

Select the domain whose cache configuration the CDN Resource should share.

This step does not apply when **Default** is selected.
{% endstep %}

{% step %}

### Save the Configuration

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

Review the pending changes and confirm the update to apply the configuration to the CDN Resource.
{% endstep %}
{% endstepper %}

## Shared Cache Behavior

### Default Cache

When **Default** is selected, the CDN Resource uses its standard isolated cache configuration.

Cached objects are maintained independently of resources using other cache configurations.

### Shared Cache

When **Share** is selected, the CDN Resource uses the cache structure associated with the selected **Shared Cache Domain**.

Participating resources can reuse identical cached objects instead of maintaining separate cached copies.

Cache sharing requires compatible cache key configurations and consistent content across participating resources.

## Important Notes

* Shared Cache is intended for resources that deliver identical content and use compatible cache key configurations.
* Resources serving different content should not share cache entries that could resolve to different responses.
* Changing Shared Cache settings does not automatically purge previously cached content. Existing objects remain subject to their configured cache expiration.
* Shared Cache controls cache sharing between resources. To configure cache expiration, see Edge Cache Expiration.


---

# 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/static-content-delivery/advanced-configuration/caching/shared-cache.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.
