# CDN Cache Management

Sirv caches files on its [CDN](/help/guides/sirv-cdn-how-it-works/) and in your users’ browsers so [images, videos and other files](/help/getting-started/file-formats-supported/) load quickly. In most cases, you don’t need to clear the CDN cache yourself.

This article explains the default cache settings and how to change them.

## Automatic cache purging

Sirv CDN automatically stays up to date. You don’t need to manually purge the CDN after you upload new versions of files to Sirv.

All cached versions of the old file are invalidated within a few seconds across Sirv’s CDN, whether it’s served from your [Sirv subdomain](/help/getting-started/account-name-subdomain/) or your [custom domain](/help/getting-started/custom-domain/), meaning the old file will never be served again.

There are two scenarios where the old file might still exist. It may have been cached in the users’ web browser or it might still be cached on a CDN server - very rare but possible.

## Manual cache purging

It is possible to manually clear a file from the Sirv CDN cache. This is very rarely needed because Sirv automatically clears the cache whenever you overwrite an image.

However, in rare scenarios, a cached version of a file might not be cleared from a CDN cache, for example if the cache clearing request was lost or timed out.

If you think an old image is being served, test it by requesting the image from another browser or device.

If you still see the old image, right-click the image in your Sirv account and choose “Purge from cache”:

![Purge from cache in the image menu](https://docs.sirv.com/img/help/screenshots/app-2026-11/image-menu-purge-cache.png)

## Browser cache duration

Browsers cache (save) files to [load them quickly](/help/guides/faster-image-loading/), rather than downloading the same files again.

Sirv sets an “expires” header of **7 days** by default, meaning the file can stay in the browser cache for the next 7 days.

Known as the TTL (time to live), 7 days suits files that change fairly often. If your files change rarely, consider increasing the TTL to 1 year.

If they change frequently, consider reducing it to 1 day or less. Choose from any of the following browser cache durations:

-   1 hour
-   3 hours
-   12 hours
-   1 day
-   7 days
-   30 days
-   1 year

## Change global cache duration

This global setting applies to all files in your Sirv account and is set in your [Default profile](/help/account-management/account-settings/change-default-sirv-settings/). It can be overridden with a profile, [see below](#change-cache-duration-per-profile).

To change the default duration:

1.  Go to [Profiles](https://app.sirv.com/assets/profiles) and click “Edit” on the Default profile. It opens on “Delivery settings”.
2.  Turn on the switch next to “Browser cache lifetime” and choose a duration.
3.  Click “Save changes” in the top right.

![Browser cache lifetime and its switch in the Default profile](https://docs.sirv.com/img/help/screenshots/app-2026-11/profile-browser-cache-lifetime.png)

## Change cache duration per-profile

You can also set a different cache expiry time for certain files. [Create a profile](https://app.sirv.com/assets/profiles), turn on “Browser cache lifetime” in its Delivery settings and choose a duration.

Apply the profile to whichever files you wish by appending its name in the URL, for example:

`https://demo.sirv.com/example.jpg?profile=long-expiry`

In that example, the profile is named “long-expiry”. [Profiles](/help/dynamic-imaging/profiles/) can also apply repeated settings such as [format, quality and resizing](/help/dynamic-imaging/overview/).

## TTL for scripts and video streams

Files delivered from scripts.sirv.com and video.sirv.com have a TTL of 7 days. This is a global default and cannot be altered.
