# Turn on the CDN (and clear its cache)

> Turn on the free CDN for your bucket, use its address, and purge the cache when files change.

Source: https://docs.phluit.com/products/object-storage/s3-cdn/

The CDN keeps copies of your **public** files in locations around the world, so they load fast everywhere.

## Turn it on

1.  Open the bucket's **Settings** tab.
2.  Under **CDN**, click **Turn CDN on**.
3.  Use the new address shown there, like `https://my-bucket.fra1.cdn.digitaloceanspaces.com/images/logo.png`.

Only public files are served through the CDN. It is free; its traffic counts toward your monthly transfer allowance.

## Changed a file?

The CDN may keep the old copy for a while. Under **Purge cache**, enter the paths (one per line, like `images/logo.png`), or leave it empty for everything, and click **Purge**.

## Turning it off

Links that use the CDN address stop working. Links to the bucket address keep working. Custom domains on the CDN are not available yet.
