Skip to main content

Edge Caching

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, 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.

Application Overview page showing Edge Caching is enabled.

Application Overview page showing Edge Caching is enabled.

Enable or disable edge caching

To enable edge caching within Sevalla, click Applications > app name > Networking, and within CDN/Edge caching, click Edit settings.

Edit the CDN and edge caching settings for your application.

Edit the CDN and edge caching settings for your application.

To enable edge caching, select Edge caching status.

Enable the CDN and edge caching on your application.

Enable the CDN and edge caching on your application.

You can also enable or disable edge caching by sending a POST request with the edge-cache API endpoint. To access and use the API with your account, you need to generate an API Key under Company settings > API keys.

To use the Edge Caching API endpoint you need you need your application’s unique ID. You can obtain this programmatically by listing all applications associated with your Sevalla company with the applications endpoint, which provides essential details about each application.

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.

Clear the cache for both CDN and edge caching.

Clear the cache for both CDN and edge caching.

You can also clear the Edge Cache by sending a POST request with the clear-cache API endpoint. If you have enabled the 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.