Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

Zone Version Management: Environments, Versions, and Rollback

How Cloudflare Version Management uses environments and version snapshots to test, promote, and roll back zone configuration changes safely.

This page summarises Cloudflare Version Management documentation on Version Management (also called zone versioning): an Enterprise feature that lets you change WAF rules, cache settings, and other zone-level products in isolated versions, route test traffic through environments, then promote or roll back without surprising live visitors.

Safely test, deploy, and roll back changes to your zone configurations using Version Management.

— Cloudflare, Cloudflare Version Management

Version Management requirements: who can enable it

Section titled “Version Management requirements: who can enable it”

Version Management is not on by default. Cloudflare states it is Enterprise-only and lists hard requirements before Enable versioning appears in the dashboard.

Requirement Detail
Plan Zone on an Enterprise plan, Active state
WAF WAF managed rules; zone migrated from deprecated Firewall Rules to custom rules; account on the new WAF
User role Super Administrator or Administrator to enable or create versions; Zone Versioning roles cannot create new versions
API API Key provisioned and API Access enabled
Management Creating, cloning, and editing version snapshots is dashboard-only; the Environments API manages environments and assignments

If the menu is greyed out, see troubleshooting for the same checklist. Terraform and Version Management do not run together—Cloudflare says to choose one or the other.

How environments and versions work together

Section titled “How environments and versions work together”

Version Management works through a combination of environments and versions.

— Cloudflare, About Version Management

An environment is where you attach a version and send matching requests for testing. A version is a snapshot of versionable zone settings (for example WAF custom rules and cache configuration).

After you enable versioning, Cloudflare can create Development, Staging, and Production:

Environment Purpose Default traffic filter idea
Development Validate changes cf.zone.name, specific Edge Server IP, cookie development=true
Staging Pre-production test cf.zone.name, specific Edge Server IP
Production Live configuration cf.zone.name only; filters not editable; environment not deletable

An environment is a place to test different versions of your zone configurations.

— Cloudflare, About Version Management

Traffic filters limit which requests hit an environment. To exercise a version, send requests that match that environment’s filter (IP, cookie, hostname, user agent, and similar). Use version metrics and environment metrics to confirm traffic is hitting the intended version. Details are in traffic filters.

Version Zero, Global Configuration, and cloning

Section titled “Version Zero, Global Configuration, and cloning”

On enable, Cloudflare creates:

  • Version Zero — your current zone configuration; deployed to default environments so live traffic is uninterrupted; permanently editable; if you disable versioning, Version Zero becomes the zone again.
  • Global Configuration — settings not supported by versioning.

Any changes made to the Global Configuration will immediately apply to your zone and all versions of your zone, affecting live traffic.

— Cloudflare, Enable Version Management

New work starts by Clone on an existing version, which copies supported configuration. Created versions are immutable (not deletable); you stop using unwanted versions by promoting something else. Compare versions before promotion in Version Management > Comparisons.

Read-only Production and promoted versions

Section titled “Read-only Production and promoted versions”

Production is read-only by default: the version tied to Production becomes read-only so nobody edits live config in place. Promoting a version to a read-only environment will make the version permanently read-only. Version Zero stays editable even when deployed to read-only environments. Organisations may mark Staging read-only for the same reason—see read-only environments.

The documented flow is: edit a version → assign it to the lowest-ranked environment → test with filtered traffic → Promote up the chain → test again → repeat for new changes.

  1. Confirm the domain summary bar shows the version you intend to edit (not Global Configuration for versioned products). See change your domain version.

  2. Clone or edit the version, then in Version Management > Environments, set the version on your lowest-ranked environment.

  3. Send requests matching that environment’s traffic filter; review View Metrics on the version.

  4. On the environment where you tested, choose Promote (only when the lower environment’s version differs from the next). Promote moves a version to the next higher environment (manage environments).

  5. If something breaks after promotion, use Roll back on that environment to revert to the previously assigned version.

Environment version changes are intentional: you cannot swap an environment’s version from the version editor except through Promote or Roll back (manage environments).

For a full walkthrough, see Get started with Version Management.

Most zone-level configuration can be edited inside a version, except items Cloudflare lists as global-only.

Generally not versioned (Global Configuration): DNS, Spectrum, Traffic (load balancing, waiting rooms, health checks, and related), Zero Trust and Access policies, and SSL certificates (custom certs can use a separate certificate staging environment—distinct from Version Management environments). The live list while editing a version is authoritative; see available configurations.

Cache in versioning: Cache Rules and, as of the documented update, Cache Response Rules participate in the same promotion pipeline:

Cache Response Rules now work with Version Management. You can version response-phase cache settings and promote them through environments, just like Cache Rules and other supported configurations.

— Cloudflare, Cache Response Rules and zone versioning

Previously, response-phase rules (for example modifying Cache-Control, cache tags, or stripping headers) applied globally with no staging path; they now stay scoped to a version until promoted. Cache Response Rules notes they can be versioned.

Versioned cache testing allows staging cache rules, independent purging in non-production environments, and validation before Production—see stage and test cache configurations. Cache Reserve is production-oriented; staged environments use standard cache, with Reserve persistence limited to production.

Plan around products that block, partially clone, or behave differently under versioning. The following reflects limitations and the Version Management overview.

Area Behavior
Terraform Not supported with Version Management; use separate accounts/domains for true infra isolation per Terraform best practices
Workers Cache API Does not work with Version Management; unexpected caching possible
Authenticated Origin Pull Incompatible; allowlisted origin IP may see 520
Snippets / Compression Rules Not supported
Client-side security (Page Shield) Global Configuration only
API Shield, Image Transformations, WAF Attack Score, Network Error Logging Some settings not cloned on new versions
Cache purge Purging production purges all environments
Waiting Room Users may re-queue or lose place; traffic may exceed limits on changes
Wrangler / Worker routes Routes may disappear on deploy; duplicate custom domains may pick randomly
China Network China traffic targets root zone regardless of production version
Security Insights Hidden after first version reaches production
Domain-scoped roles Apply to root zone only; not copied to new versions

Workers deploying frequently may set cache.cross_version_cache to share cache across deployments (cache keys); that trades rollout speed for hit rate and is separate from zone Version Management but affects cache during version rollouts.

Common mistakes when rules “disappear” or clones fail

Section titled “Common mistakes when rules “disappear” or clones fail”

Wrong version in the dashboard — Versioned rules exist per version. A cache or WAF rule created in version A does not appear while viewing version B, even if A is active in an environment. Switch versions in Version Management or clone the source version (troubleshooting).

Clone failures — Unsupported or partial configs (API Shield, Image Transformations, WAF Attack Score, NEL), invalid/conflicting rules in the source, or a missing Global API Key (needed to compare or clone). Retry after fixing the source; contact Support with account/zone IDs, version number, action, error text, and timestamp (information for Support).

Editing a read-only Production version — Detach by changing the environment’s version, or adjust the environment’s read-only setting, then edit a non-promoted clone (read-only versions).

Disabling versioning — Config reverts to Version Zero; align Version Zero with current Production via Comparisons before disable (enable / disable).

  1. In the Cloudflare dashboard, open your zone → Version Management and confirm versioning is enabled and Production shows the version you expect.

  2. On Environments, verify each environment’s traffic filter and assigned version; send a test request that matches Development or Staging filters and confirm behavior via View Metrics on that version.

  3. Before promoting, use Compare versions between staging and production assignments to review per-product diffs.

  4. After cache changes, validate response-phase rules in a non-production environment and confirm purge behavior (remember production purge affects all environments); see purge zone versions via API if you automate purges.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about.