> For the complete documentation index, see [llms.txt](https://docs.scaleflex.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scaleflex.com/dynamic-media-optimization-dmo/settings/delivery/caching.md).

# Caching

Caching accelerates the loading times of images as it allows to host them as close as possible to your end users. By caching, your ensure maximum performance of your website.

When this cache expires, the image will be requested from the origin and the new image delivered to the client.

Please note that these settings can be changed upon request via a [ticket to our support team.](https://scaleflex.zendesk.com/agent/)

<figure><img src="/files/1BQVLjYZkbxO7wbyEfBx" alt=""><figcaption></figcaption></figure>

**Browser cache expiration interval (Max-age):** The time in seconds that the image is allowed to be re-used. For instance, max-age=86400 indicates that an image remains in the browser cache for the next 86400 seconds (24 hours).

**CDN cache expiration interval (S-maxage):** S-maxage = 31536000 indicates that the image remains in the CDN cache for 31536000 seconds (1 year)

**Automatic origin image refresh:** If you need to use a very small caching interval for a specific image (for example, snapshots from a live webcam or a specific chart with dynamically changing contents), you need to change the **Automatic origin image refresh** setting in your Admin console. This tells our resizing servers to update all origin images after this interval has expired.


---

# 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://docs.scaleflex.com/dynamic-media-optimization-dmo/settings/delivery/caching.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.
