Clear app's edge cache programmatically by URL
T
Thien
Currently, for example with NextJS app, I need to redeploy the app manually to clear DO App edge cache when there's content change in CMS, before the cache-control header expires as per https://docs.digitalocean.com/products/app-platform/how-to/cache-content/.
Would be great if we can have a way to clear DO App edge cache programmatically without redeploying the app, probably another endpoint in DO API (https://docs.digitalocean.com/reference/api/api-reference/#tag/Apps)? Even better if we can clear App edge cache by URL or URI. Thanks so much.
A
Andrew
+1
We also need this control, we have tried Cloudflare's Orange-to-Orange (https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/saas-customers/how-it-works/) set up as well, but doesn't appear to work as expected.
Also using NextJS which means limited control over the cache-control header without sacrificing the local static builds cache.