> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sevalla.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edge caching

> Optimize your content delivery using edge caching strategies.

Edge Caching saves your Sevalla site/page cache (which is only saved to your site's data center) to any of Cloudflare's global network of 260+ data centers. When your visitors load your application in their browser, cached responses will be delivered from the location closest to them, increasing the performance and speed of your application.

Edge Caching serves your Sevalla site/page cache but does not serve static assets like images, JavaScript files, and CSS files. Sevalla's [CDN](/applications/cdn/), which is independent of Edge Caching, can be enabled to serve your static assets. If Sevalla CDN is enabled, your site has an additional caching layer managed separately from Edge Caching. When you clear the Edge Cache for applications, this also clears the CDN cache.

Edge Caching is **not** enabled by default on Application Hosting. The application's **Overview** page shows if Edge Caching is enabled or disabled.

<Frame caption="Application Overview page showing Edge Caching is enabled.">
  <img className="hidden dark:block" src="https://mintcdn.com/sevalla/v0lzj-FaBEBpG-Fe/images/app-overview-edge-dark.png?fit=max&auto=format&n=v0lzj-FaBEBpG-Fe&q=85&s=40af0d565b3e7eceb7a072fff9fd767e" alt="Application Overview page showing Edge caching is enabled" width="3630" height="1148" data-path="images/app-overview-edge-dark.png" />

  <img className="dark:hidden" src="https://mintcdn.com/sevalla/v0lzj-FaBEBpG-Fe/images/app-overview-edge-light.png?fit=max&auto=format&n=v0lzj-FaBEBpG-Fe&q=85&s=11f9eb9f8053b3c262bd2a0f4e89786f" alt="Application Overview page showing Edge caching is enabled" width="3624" height="1146" data-path="images/app-overview-edge-light.png" />
</Frame>

## Enable or disable edge caching

To enable edge caching within Sevalla, click **Applications** > **app name** > **Networking**, and within **CDN & Edge caching**, click **Update settings**.

<Frame caption="Edit the CDN and edge caching settings for your application.">
  <img className="hidden dark:block" src="https://mintcdn.com/sevalla/40BMwYMBrkEyfQ_W/images/cdn-edge-dark.png?fit=max&auto=format&n=40BMwYMBrkEyfQ_W&q=85&s=d73216ecbfb296463eaf8e05a9b5e441" alt="Edit the CDN and edge caching settings for your application" width="2552" height="376" data-path="images/cdn-edge-dark.png" />

  <img className="dark:hidden" src="https://mintcdn.com/sevalla/40BMwYMBrkEyfQ_W/images/cdn-edge-light.png?fit=max&auto=format&n=40BMwYMBrkEyfQ_W&q=85&s=b5c18859fd0f8672fbaddddb63d8aa4a" alt="Edit the CDN and edge caching settings for your application" width="2548" height="370" data-path="images/cdn-edge-light.png" />
</Frame>

To enable edge caching, select **Edge caching**.

<Frame caption="Enable the CDN and edge caching on your application.">
  <img className="hidden dark:block" src="https://mintcdn.com/sevalla/40BMwYMBrkEyfQ_W/images/cdn-edge-update-dark.png?fit=max&auto=format&n=40BMwYMBrkEyfQ_W&q=85&s=016a79ebd3a2b5fa495d3378f9878a18" alt="Enable the CDN and edge caching on your application" width="1188" height="604" data-path="images/cdn-edge-update-dark.png" />

  <img className="dark:hidden" src="https://mintcdn.com/sevalla/40BMwYMBrkEyfQ_W/images/cdn-edge-update-light.png?fit=max&auto=format&n=40BMwYMBrkEyfQ_W&q=85&s=fde82f25f0fadd6aa17481ab74489776" alt="Enable the CDN and edge caching on your application" width="1178" height="614" data-path="images/cdn-edge-update-light.png" />
</Frame>

## Clear edge cache

To clear the edge cache, within Sevalla, click **Applications** > **app name** > **Networking**, and within **CDN & Edge caching**, click **Purge cache**. If both CDN and edge caching are enabled, purging the cache will apply to both.

<Frame caption="Clear the cache for both CDN and edge caching.">
  <img className="hidden dark:block" src="https://mintcdn.com/sevalla/40BMwYMBrkEyfQ_W/images/cdn-edge-purge-dark.png?fit=max&auto=format&n=40BMwYMBrkEyfQ_W&q=85&s=cc036d122e6baf96f216e1ba2c003713" alt="Clear the cache for both CDN and edge caching" width="2554" height="378" data-path="images/cdn-edge-purge-dark.png" />

  <img className="dark:hidden" src="https://mintcdn.com/sevalla/40BMwYMBrkEyfQ_W/images/cdn-edge-purge-light.png?fit=max&auto=format&n=40BMwYMBrkEyfQ_W&q=85&s=690b77b5b10361350220050f174f19ee" alt="Clear the cache for both CDN and edge caching" width="2552" height="374" data-path="images/cdn-edge-purge-light.png" />
</Frame>

You can also clear the Edge Cache by sending a `POST` request with the [clear-cache API endpoint](https://api-docs.sevalla.com/v3/applications/purge-edge-cache). If you have enabled the [CDN](/applications/cdn/), this also clears the CDN cache.

Clearing Edge Cache in all of Cloudflare's data centers may take 2-5 minutes to fully complete.
