Remove cached content from the CDN when you need to update files.
Purge your cache when:
Remove all cached content for your zone. Use sparingly as this will cause all requests to hit your origin temporarily.
Dashboard:
API:
curl -X POST "https://nordiccdn.com/api/v1/zones/{uuid}/purge" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"type": "all"}'
Remove specific files or directories from cache.
Dashboard:
API:
curl -X POST "https://nordiccdn.com/api/v1/zones/{uuid}/purge" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"type": "path",
"paths": [
"/images/logo.png",
"/css/style.css"
]
}'
Use wildcards to purge multiple files matching a pattern.
Examples:
/images/* # All files in /images/
/css/*.css # All CSS files in /css/
/products/*/ # All product subdirectories
Purge requests are processed asynchronously. You can check the status:
Dashboard:
API:
curl "https://nordiccdn.com/api/v1/zones/{uuid}/purge/{purge_id}" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Purges typically complete within:
The exact time depends on the number of edge servers and files being purged.
To prevent abuse:
Each "Purge All" causes a temporary increase in origin load. Instead:
Instead of purging, consider:
<!-- Version query strings -->
<link rel="stylesheet" href="/style.css?v=1.2.3">
<!-- Filename versioning -->
<link rel="stylesheet" href="/style.abc123.css">
These approaches let you update content without purging, as the new URL creates a new cache entry.