Skip to main content

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:

  1. Go to Domains → select the domain → Purge & Warm tab (or use the Cache Purge page /cache-purge for org scope). Go to Domains → select the domain → Purge tab (or use the Cache Purge page
  2. Choose a Mode (url / prefix / suffix / tag / all).
  3. Enter the list of Values (not used for the all mode). Each entry is a URL/pattern/tag.
  4. Click Purge. Track the propagation progress through the purge status.

Warm by domain:

  1. Open the Warm section and paste the list of URLs (≤1000 URLs).
  2. Click Warm. The edge fetches them one after another (with spacing between nodes).

Configuration fields​

Purge:

FieldMeaningValuesDefaultNotes
ModeType of cache purgeurl, prefix, suffix, tag, all—Mode must be one of these 5 values; otherwise → 400
ValuesURLs/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:

FieldMeaningValuesDefaultNotes
URLsList of URLs to preload≤1000, each URL 1–4096 characters, http(s)://—Host must match the domain; no private/loopback
ConcurrencyNumber of parallel fetches per node1–50 (clamped automatically)10Out-of-range values are clamped to the limit without an error
Timeout (s)Timeout per URL5–3600 (clamped automatically)120—
Force refreshSends Cache-Control: no-cache to load a fresh copyOn/offOffIgnores the existing cached copy
Warm uncompressedAlso preloads the uncompressed variantOn/offOffDoubles 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.png right after the purge → X-Cache: MISS, the next time → HIT with 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: HIT on the first request. (By default, warming only preloads the compressed variant; a curl -I request without Accept-Encoding returns a MISS — send Accept-Encoding or 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/prefix modes, 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​

SymptomCauseFix
400 "rate limit exceeded: max N …"Operation limit exceeded: purge allows at most 30 requests/minute, warm at most 5 requests/minuteWait for the 60s window to pass and try again; combine several values into one command
429The organization's daily quota has been exceededWait until the next day, or contact VNETWORK support to raise the quota
tag purge returns 400Tag is shorter than 4 charactersUse a tag of at least 4 characters
Warm returns 400The URL is not http(s)://, the host does not match the domain, or it points to a private/loopback addressCorrect the URL to the right domain and a public address
Purge is "accepted" but the content does not changeYou are seeing the browser's cached copy, or the purge has not finished propagatingTry 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 URLThe value contains the host of another domainUse 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.