Behind edge ✓host verge.run.placeproto httpscdn-loop vergcloud-staging; count=1
← Feature map

Page Rules lab

If URL matches glob → Then apply settings. Core + enterprise cases (boost, resize, host, timeout, device cache, LB) — one Quick setup applies all.

Quick setup — Page Rules lab

Applies Verge config for this lab (page-rules). Preflight (active domain + reachable CDN) runs first and must pass. Key stays in memory and is proxied server-side.

Example config

  • Rewrite: /api/origin/page-rules/rewrite/old* → rewrite_url …/rewrite/new
  • Priority: …/priority* seq 500 (high-weight) vs …/priority/probe* seq 100
  • Req/res headers + redirect on their /api/origin/page-rules/* paths
  • Boost: /assets/page-rules/boost/* acceleration css+js on
  • Image resize: /assets/page-rules/resize/* + cache query_string + image_resize on
  • Host: …/host* → change_host_header playground-pr-host.test
  • Timeout: …/timeout* → read_timeout 1
  • Device: …/device* → cache_by_device_type true
  • LB: …/lb* → load_balancer=<existing name> (skipped if none)

Setup guide

CDN → Domain [domain] → Page Rule

Suggested config

  • Rewrite: /api/origin/page-rules/rewrite/old* → rewrite_url …/rewrite/new
  • Priority: …/priority* seq 500 (high-weight) vs …/priority/probe* seq 100
  • Req/res headers + redirect on their /api/origin/page-rules/* paths
  • Boost: /assets/page-rules/boost/* acceleration css+js on
  • Image resize: /assets/page-rules/resize/* + cache query_string + image_resize on
  • Host: …/host* → change_host_header playground-pr-host.test
  • Timeout: …/timeout* → read_timeout 1
  • Device: …/device* → cache_by_device_type true
  • LB: …/lb* → load_balancer=<existing name> (skipped if none)

Verify

  1. Rewrite → ORIGIN-PR-REWRITE-NEW
  2. Priority → X-Playground-Rule-Winner: high-weight
  3. Boost CSS bytes < ~500; resize PNG << 185KB
  4. Host body includes playground-pr-host.test
  5. Timeout probe errors / 5xx (no ORIGIN-PR-TIMEOUT body)
  6. Device: mobile vs desktop different nonces

Origin routes

All probes are same-origin through the CDN hostname. Open routes in a new tab to compare edge vs origin headers.

old path rewrites to new fingerprint (no Location redirect).

/api/origin/page-rules/rewrite/old

No request yet — hit a button above to run a probe.