Purge & Warm — clearing & preloading the cache
- Purge (clear cache): invalidates the cached copy on all edge nodes so the next request fetches it again from the origin. Use it when you have just updated content and want users to see the new version right away.
- Warm (preload cache): asks the edge to preload a list of URLs into the cache, so a user's first request is already a HIT. Use it before a major release or promotion.
Example: you have just replaced the image /promo/banner.png — purge that URL to drop the old copy, then warm it again so your visitors' first view is already fast.
Before you start
- The domain has been added, points to VNIS, and has caching enabled.
- For Warm, the URLs must belong to the domain you are working on and resolve to a public address (not private/loopback).
- Your organization still has purge/warm quota left for the day (if a quota is set — see Quota).
How to configure
Purge by domain:
- Go to Domains → select the domain → Purge & Warm tab (or use the Cache Purge page
/cache-purgefor org scope).
- Choose a Mode (
url/prefix/suffix/tag/all). - Enter the list of Values (not used for the
allmode). Each entry is a URL/pattern/tag. - Click Purge. Track the propagation progress through the purge status.
Warm by domain:
- Open the Warm section and paste the list of URLs (≤1000 URLs).
- Click Warm. The edge fetches them one after another (with spacing between nodes).
Configuration fields
Purge:
| Field | Meaning | Values | Default | Notes |
|---|---|---|---|---|
| Mode | Type of cache purge | url, prefix, suffix, tag, all | — | Mode must be one of these 5 values; otherwise → 400 |
| Values | URLs/patterns/tags to purge | ≤100 entries, each 1–4096 characters | — | Not used for all; empty entry → 400; with tag, each tag must be ≥4 characters |
How the tag mode works: A tag purge does not read the origin's Cache-Tag header. It does a case-insensitive substring match against the entire cache key — that is, the URL, including both path and query. Each tag must be ≥4 characters.
Tags that are too short or too generic cause over-purging. For example, the tag prod also matches product-123 and production. Conversely, a tag such as test-tag that exists only in the origin's Cache-Tag header and does not appear in the URL will purge nothing. Use tags that are long enough, specific, and part of the URL itself.
Warm:
| Field | Meaning | Values | Default | Notes |
|---|---|---|---|---|
| URLs | List of URLs to preload | ≤1000, each URL 1–4096 characters, http(s):// | — | Host must match the domain; no private/loopback |
| Concurrency | Number of parallel fetches per node | 1–50 (clamped automatically) | 10 | Out-of-range values are clamped to the limit without an error |
| Timeout (s) | Timeout per URL | 5–3600 (clamped automatically) | 120 | — |
| Force refresh | Sends Cache-Control: no-cache to load a fresh copy | On/off | Off | Ignores the existing cached copy |
| Warm uncompressed | Also preloads the uncompressed variant | On/off | Off | Doubles the number of fetches per URL |
Note: the Warm interface on the domain page usually sends only the list of URLs; Concurrency/Timeout/Force/Uncompressed use the server-side defaults.
Configuration examples
To read the X-Cache: HIT/MISS header when checking, you must first turn on Enable X-Cache in the domain's Cache Policy (see the Cache page). Without it, the response does not include this header.
Example 1 — Purge exactly one file you just updated.
- Mode:
url· Values:/promo/banner.png. - Expected result: the cached copy of that URL is removed on every node; the next request is a MISS and fetches the new version from the origin.
- How to check:
curl -I https://domain/promo/banner.pngright after the purge →X-Cache: MISS, the next time →HITwith the new content.
Example 2 — Purge an entire directory by prefix.
- Mode:
prefix· Values:/assets/css/. - Result: every URL starting with
/assets/css/is purged. - How to check: load a few files in
/assets/css/after the purge → each is a MISS the first time.
Example 3 — Warm the cache before a promotion.
- Warm URLs: a list of about 200 popular product pages.
- Result: the edge preloads those URLs; the first visitor already gets a HIT.
- How to check: after warming finishes,
curl -I -H 'Accept-Encoding: gzip, br' https://domain/<url-in-the-list>→X-Cache: HITon the first request. (By default, warming only preloads the compressed variant; acurl -Irequest withoutAccept-Encodingreturns a MISS — sendAccept-Encodingor turn on Warm uncompressed.)
The all mode on a wildcard domain (*.…) consumes 10 times as much quota — think before using it.
Order of evaluation
- Purge/Warm are sent to every edge node.
- Tracking propagation: after a purge, the purge status in the console shows how far the command has propagated.
- You can purge only domains that belong to your own organization.
- With the
url/prefixmodes, a value that includes a scheme/host different from the domain is blocked with 400 (cross-tenant guard). A wildcard domain that covers subdomains of another org also gets 400.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| 400 "rate limit exceeded: max N …" | Operation limit exceeded: purge allows at most 30 requests/minute, warm at most 5 requests/minute | Wait for the 60s window to pass and try again; combine several values into one command |
| 429 | The organization's daily quota has been exceeded | Wait until the next day, or contact VNETWORK support to raise the quota |
tag purge returns 400 | Tag is shorter than 4 characters | Use a tag of at least 4 characters |
| Warm returns 400 | The URL is not http(s)://, the host does not match the domain, or it points to a private/loopback address | Correct the URL to the right domain and a public address |
| Purge is "accepted" but the content does not change | You are seeing the browser's cached copy, or the purge has not finished propagating | Try a private browser window / curl; check the purge status; if the content still does not change after a few minutes, contact VNETWORK support |
| Cross-tenant 400 when purging by URL | The value contains the host of another domain | Use only the path, or a URL on the domain you are working on |
FAQ
- How long does a purge take to reach all nodes? Usually a few seconds; check the purge status to see its progress.
- How many URLs can I warm at once? 1000 URLs.
- Should I purge or warm first? Purge to drop the old copy, then warm to load the new one — in that order.