OpenCache Runtime Behavior
This document describes how OpenCache actually handles traffic at the edge: what it adds to requests, what it adds to responses, how it decides what to cache, how requests collapse during peak load, how it serves stale content, and what diagnostic surface area it exposes.
It explains what your edge resource settings actually do end-to-end, and which behavior is "always-on" regardless of configuration. Headers are only summarized here: the full reference for every request and response header OpenCache adds, changes or removes lives in OpenCache HTTP headers.
Table of Contents
- Overview
- Protocols & Transport
- Request → Upstream Headers
- Upstream → Client Headers
- Request Collapsing (proxy_cache_lock)
- Cache Key Construction
- Cache Decisions
- Stale Serving
- Cache Tier Policy & Tier Rules
- GeoIP Enrichment
- CORS Override
- Diagnostic Endpoints
- Build Identity (
$oc_build_id) - Logging & Observability
- Failover & Retries
- Peer Fill (filling from another PoP)
- Signed URL delivery
1. Overview
OpenCache is a TLS-terminating reverse cache that sits between end clients and upstream origins. A single node runs an nginx data plane plus side-car services for BGP routing, prefix telemetry, and config generation from a centralized DUS key/value store (KVS).
Each PoP runs the same image, but its actual behavior is composed from three layers of configuration:
- Site configuration — per-resource (
opencache:edgeResource:<id>): upstreams, routes, TLS, cache rules, CORS, headers. This is whatconfigExplained.jsoncdocuments. - Node configuration — per-PoP (
opencache:nodeConfig:<POP_ID>) and fleet-wide (opencache:nodeConfigDefaults): cache storage, network, monitoring, availability, filters, retries, ACME, and (importantly)cacheTierPolicy— the fleet-operator-injected zones and tier rules described in §9. - Runtime, always-on behavior — emitted unconditionally by the config generator: request enrichment headers, diagnostic endpoints, observability headers, HTTP/3 advertisement, build-identity surfacing. This document focuses on this layer.
┌─────────────────────────────┐
│ Client (browser / app) │
└────────────┬────────────────┘
│ TLS over TCP/443
│ or QUIC over UDP/443
▼
┌──────────────────────────────────────────────────────┐
│ nginx (data plane) │
│ ┌────────────────────────────────────────────────┐ │
│ │ 1. TLS termination + HSTS + OCSP stapling │ │
│ │ 2. HTTP/1.1 / HTTP/2 / HTTP/3 negotiation │ │
│ │ 3. GeoIP enrichment (silent fallback) │ │
│ │ 4. Build identity tagging ($oc_build_id) │ │
│ │ 5. Diagnostic endpoints (/oc-cgi/*) │ │
│ │ 6. Route matching (location precedence) │ │
│ │ 7. Cache rule selection │ │
│ │ 8. Query normalization (njs) │ │
│ │ 9. Cache key composition + request collapse │ │
│ │ 10. proxy_pass → upstream OR cache HIT/STALE │ │
│ │ 11. Cache-Control scrubbing (njs) │ │
│ │ 12. Observability headers (Pf-*, X-Cache-*) │ │
│ │ 13. CORS injection / Speculation-Rules strip │ │
│ └────────────────────────────────────────────────┘ │
└────────────┬──────────────────────────┬──────────────┘
│ │
│ HTTPS │ HTTP API (KVS)
▼ ▼
┌──────────────┐ ┌────────────────────┐
│ Upstream │ │ DUS KVS │
│ origins │ │ (sites + nodes + │
└──────────────┘ │ tier policy) │
└────────────────────┘
Side-car services on the same node (not on the request path):
- Bird — BGP peering, host networking, advertises PoP prefixes.
- prefix-monitor — polls
birdc, pushes prefix telemetry + node metrics into the KVS, serves the node's JSON metrics document behind/oc-cgi/metricsand a Prometheus surface scraped by the local Alloy and shipped to the ClickHouse warehouse. - config-generator — pulls
edgeResource+nodeConfig*from the KVS, validates, resolves defaults, applies tier policy, renders nginx and Bird config, and triggers nginx reloads.
Allowed characters in edge resource settings
Every text value of an edge resource ends up in a PoP's nginx configuration. From OpenCache v26.10.14 a PoP escapes what it can and leaves a resource that breaks one of these rules out of its configuration, so the console refuses such a value when you save (a value saved before the rule existed only shows a warning, and other changes still save):
- No control characters (line breaks, NUL and the like) in any setting, except an inline certificate or key.
- At most about 4 KB a value: 4000 bytes, each
",'and\counting 2. A header counts asName: value, and a list written as one value, such as the cipher list, counts as a whole. In a cache key each$schemecounts 15 bytes and each$proxy_host200, because a PoP may write them out. The resource name takes at most 256 bytes, counted as the health endpoints write it ("3,\4,'2), and an upstream name at most 128 bytes. $starts an nginx variable in the settings that support variables (header values, cache keys, redirect targets, return bodies, Cache-Control values):$nameor${name}, or a capture$1–$9. The variable must exist: one nginx defines (such as$host,$request_uri,$http_<header>,$cookie_<name>,$arg_<name>), a named capture of one of the resource's route patterns, or one OpenCache defines under a fixed name (such as$pop_idor$geoip_country_code). A literal$is not possible there.- Quoted values (header values, cache keys, return bodies, Cache-Control values) take any other character, quotes,
;and braces included. - Header names are HTTP header names (letters, digits and
! # % & ' * + - . ^ _ ` | ~); CORS allowed methods, allowed headers and exposed headers list such names. See Header names and values you configure. - Route, cache rule and sub-rule IDs and the resource name take anything but
$. - Redirect targets are a URL or path without spaces, quotes, backslash,
;or braces (except in${variable}). Values written as one setting word — sizes, times, paths, hosts, protocols, MIME types, file extensions — have no spaces, quotes, backslash,;or braces either, and do not start with#. The access log settings have stricter formats of their own (next item). - Access log settings (
cache.monitoring.accessLog): from v26.10.14 a PoP ignores them (each resource logs to its own file), but older releases write them into their configuration as they are, and their nginx refuses a configuration it cannot load (which stops every later change on that PoP). On every release the console therefore takes only these, or an empty value: as the path, a file directly in/var/log/nginx(such as/var/log/nginx/access.log; letters, digits,_,.and-in the file name); as the buffer, an nginx size from 1 byte to64m(up to six digits without a leading zero, with an optionalkorm, such as32k); as the flush interval, an nginx time (up to six digits without a leading zero, with an optionalms,s,morh, such as5s), and only together with a buffer. Older releases also write every resource's access log into one shared file, and their nginx refuses one file with different settings, so with a path set, any settings but the default ones (buffer32k, flush5s, no gzip) or none at all (no buffer, no flush interval, no gzip) need v26.10.14 or newer on every PoP the resource serves. - Paths on the PoP that a resource names are absolute, made of letters, digits and
. _ - ~ + @ = ,between the/(no spaces, quotes,$or other characters, so no variables), without a..part, and they must stay where OpenCache keeps such files: a static route's root is/var/wwwor a directory below it, whatever the route's action (every resource can read what is under/var/www, so use a directory of its own, such as/var/www/<resource id>/; symbolic links below the root are not followed); the temp path (cache.global.tempPath) is/var/cache/nginxor below; the error log is/var/log/nginx/error.log, the only one that is rotated and shipped; an origin CA bundle (tlsCaCert,proxySettings.ssl.trustedCertificate) and a DH parameters file (tls.dhparam) are a file below/etc/ssl/,/usr/local/etc/ssl/or/usr/local/share/certs/. A certificate and key (tls.cert,tls.key) are the PEM itself (-----BEGIN …orbase64:…), never a file path. Older releases use such paths as they are, so this holds on every release. A CA bundle or DH parameters file must also exist on every PoP (a PoP has a DH parameters file only if its operator created one), and naming one at all needs v26.10.14 or newer on every PoP the resource serves: an older release cannot load its configuration when the file is missing or holds something else, which stops every change on that PoP. - Certificates (
tls.certandtls.key) are set together or not at all; the certificate must hold a-----BEGIN CERTIFICATE-----block and the key a private key block (-----BEGIN PRIVATE KEY-----,-----BEGIN RSA PRIVATE KEY-----or-----BEGIN EC PRIVATE KEY-----), decoded first when given asbase64:. A PoP leaves a resource with any other certificate out of its configuration. - Cache zone placement (
basePath,volumesandsharedof a zone incache.zones) is the PoP's: its node config and cache tier policy decide which disks a zone uses. From v26.10.14 a PoP ignores them in an edge resource; older releases create the directory and hand it to nginx. The console refuses them on every release.
Older releases wrote these values unescaped. Until every PoP a resource serves reports v26.10.14 or newer, the console therefore also refuses a new value with a quote or backslash in a header value, cache key, Cache-Control value, return body, ID, dropped query parameter or the resource name, a header name with ' or starting with #, a log format field with ' or a backslash, a space, quote, backslash, ; or brace in a custom origin request header, a route pattern with a space, quote, ; or brace (such as a {2} quantifier), or a $ in the signing secret or the drop-parameters pattern (also a quote or a trailing backslash there), any of these settings holding something other than text, a CA bundle or DH parameters file, and access log settings other than the default ones or none. Adding a PoP to a resource checks it again for every such value the resource holds, access log settings, paths and zone placement saved before their rules existed included. Empty header rows (no name, no value) are dropped when you save.
The check holds when you save. Once a resource holds such values, never roll a PoP that serves it back below v26.10.14: the older release would write them unescaped again.
2. Protocols & Transport
TLS
TLS termination happens directly on the cache tier — there is no upstream TLS proxy in front of OpenCache. Certificates and keys are configured per-site under tls. Defaults emitted by the generator favor modern TLS:
- Default protocol set is TLS 1.2 and TLS 1.3 unless overridden by
tls.protocols. - Default cipher list is the Mozilla intermediate profile.
- OCSP stapling is on by default.
tls.ocspStaplingcontrols whether the resolver is queried and verification is enforced. - HSTS is emitted when
tls.hsts.enabledis true, withincludeSubdomains/preloadflags surfaced verbatim. tls.redirectHttp: truecauses the port 80 listener for that site to issue a 301 tohttps://$host$request_uri.- With
certMode: autoand no issued certificate (emptycert/key) the site serves fully over plain HTTP on port 80. That is the intended state for an HTTP-only lancache resource.
Origin passthrough (lancache-style)
An upstream with originPassthrough: true does not pin a backend host. On a cache MISS the edge fetches from the hostname the client requested:
proxy_pass http://$host$request_uri;(resolved via the http-levelresolver, default8.8.8.8 8.8.4.4 9.9.9.11 149.112.112.11, configurable per node vianodeConfig.dns.resolvers)proxy_set_header Host $host;- HTTP only (
tlsmust be false). Noupstream {}block is emitted. - Default cache key is
$host$uri(query ignored). Loop prevention still appendsCDN-Loopand 503s a request that already carries this node's identity. - Alternate domains may include a leading
*.wildcard (*.cdn.blizzard.com). - Storage tiering and cross-PoP peer fill are skipped for these routes in this version — the front dials origin directly.
Legacy TLS (TLS 1.0 / 1.1, retired ciphers) is reachable for sites that opt in explicitly. When such a site is present, the generator emits OpenSSL 3.x's @SECLEVEL=0 cipher prefix so OpenSSL will load legacy primitives at all.
HTTP/2
HTTP/2 is enabled for every TLS listener using the modern http2 on; server directive (nginx 1.25+), not the deprecated listen ... http2 flag. ALPN advertises h2, http/1.1.
HTTP/3 (QUIC)
HTTP/3 is enabled on every site. The generator emits:
listen 443 quic reuseport(and the IPv6 equivalent) at the server scope, usingSO_REUSEPORTso a rolling update can briefly have two nginx workers bound to UDP/443 without dropping packets.http3 on;at the server scope.Alt-Svc: h3=":443"; ma=86400(set withmore_set_headers, replacing anyAlt-Svcthe origin sent) so HTTP/2 clients are told they can upgrade to HTTP/3 on the next connection.- From OpenCache v26.10.14, on port 80 (plain HTTP, the redirect to HTTPS included) the origin's
Alt-Svcis removed and nothing is advertised: an origin'sAlt-Svcnames the origin's own alternatives, so it never reaches a visitor on any port, cache hits included. Clients learn about HTTP/3 from their first HTTPS response. Older releases pass the origin'sAlt-Svcthrough on port 80.
Clients that already speak HTTP/3 (recent Chrome, Firefox, Safari, curl --http3) will negotiate it on the first connection; older clients fall back to HTTP/2 or HTTP/1.1 over TCP. There is no protocol downgrade attack surface — QUIC is on UDP/443 only and is independent of the TCP listener.
A PoP can have HTTP/3 switched off (for example when its network card can't carry QUIC traffic well): it then has no QUIC listener, sends Alt-Svc: clear on every response, HTTPS and (from v26.10.14) port 80 alike, so clients that remembered HTTP/3 forget it, and serves over TCP only (HTTP/2 or HTTP/1.1).
A site or route header modification that overwrites or removes Alt-Svc, or a cache rule that sets it, still wins over OpenCache's value, on both ports and whether HTTP/3 is on or off; a plain add sends its own Alt-Svc line next to it. A response served by fallback after a storage tier or cache disk failed gets only OpenCache's value or a site-level overwrite or remove. See Alt-Svc.
SO_REUSEPORT and Zero-Downtime Rolling Updates
Every default_server listener (port 80, 443 TCP, 443 UDP) is emitted with reuseport. Combined with the Swarm deploy order: start-first, this allows a new task to bind to the listening ports while the old task is still serving, producing a zero-loss handover for the duration of the deploy. KVS-driven config changes (cache rules, headers, route changes) still flow through nginx -s reload via config-watcher inside the running container — the overlap mechanism is only for image / binary rollouts.
3. Request → Upstream Headers
A short summary — see Request headers for the full list, value formats and examples.
- Client headers are forwarded by default. Everything the visitor sent reaches the origin, including
Cookieunless the matching rule is set to ignore it. Hop-by-hop headers (Connection,Keep-Alive,TE,Upgrade, …) are not forwarded, so WebSocket upgrades are not supported. - Range and conditional requests are answered at the edge on cached routes:
Range,If-None-Match,If-Modified-Sinceand similar headers are normally served from the cached object and not forwarded to the origin. Hostis the upstream server's hostname, not the visitor'sHost(except on origin-passthrough upstreams, see §2).- Forwarding headers:
X-Real-IP,X-Forwarded-For,X-Forwarded-ProtoandCDN-Loopare always added.X-Forwarded-HostandX-Forwarded-Portare not sent by default. OC-headers:OC-Connecting-IP(visitor IP),OC-RID(request id, also returned to the client asPF-Request-ID),OC-Visitor({"scheme":"https"}), and the visitor location familyOC-IPCountry,OC-IPCity,OC-IPContinent(continent code),OC-Region(subdivision name),OC-Timezone,OC-IPLatitude,OC-IPLongitude. A location header is omitted — not sent empty — when the value is unknown.
4. Upstream → Client Headers
A short summary — see Response headers for the full list and value formats.
- On every response:
Server: opencache,PF-Request-ID,PF-Pop,PF-Server(short node name),Age,Pf-Cache-AgeandPf-Cache-Timing(§14). - On cached routes:
X-Cache-Status,Pf-Cache-Tier, and — opt-in per PoP —Pf-Cache-Status(RFC 9211Cache-Status). The origin'sSet-Cookieis removed so a cached response never carries one visitor's cookie to another. - Removed or replaced: Cloudflare-injected
Speculation-Rules, andNEL/Report-To/Reporting-Endpointsvalues pointing at Cloudflare'scf-nelreporting group, are removed.Alt-Svcis replaced with the edge's ownh3advertisement on HTTPS and, from v26.10.14, removed on port 80 (Alt-Svc: clearon both while a PoP has HTTP/3 off). Cache-Control: a rule'sexpirationsettings (browser TTL, CDN TTL,immutable, control directive) set theCache-Controlthe client receives. See Cache-Control and Expires.- CORS: see §11.
Header emission ordering
Site-level headers[] entries are applied in two phases:
- Add actions (
action: "add", or no action) are applied first. By default they append to any header of the same name the origin sent; withoverwrite: truethey replace it. - Remove actions (
action: "remove") are applied last, so a remove always wins over an add for the same header.
5. Request Collapsing (proxy_cache_lock)
The stampede problem
When a popular object expires from cache, the naive behavior is for every in-flight request to fan out to the origin in parallel — a single second of expiration can produce thousands of upstream requests, blowing up origin load and potentially saturating the link. nginx solves this with proxy_cache_lock: only the first request goes to the origin, the rest wait for it to complete and then serve from cache.
Property-level policy
Request collapsing is configured per edge resource, not per cache rule. The policy lives on cache.global:
| Field | Default | Meaning |
|---|---|---|
cache.global.lockEnabled | true | Collapse concurrent misses into one origin fetch. |
cache.global.lockTimeout | 3s | How long a waiting request holds before giving up on the leader and going to origin itself. |
cache.global.lockAge | 3s | How long the leader has to complete before nginx releases one more request upstream. |
OpenCache emits these once at the server scope of every site (and once per tier core), so they apply to every caching location by inheritance — cache rules, cache tier rules, knownStaticFiles, and inlined catch-alls alike. In the console they are under Cache → Global Cache Settings → Request Collapsing.
Setting lockAge too low is the classic mistake: any origin slower than the age produces cascading fallbacks where every "follower" becomes a new leader and the origin gets stampeded anyway — the exact outcome collapsing exists to prevent.
Per-rule overrides
Individual cache rules (and sub-rules) may override the property policy via cache.lockEnabled, cache.lockTimeout, and cache.lockAge. Each field is independent, and null means "inherit" — which is the default for new rules, and what the console shows as Inherit from property.
The generator emits a directive at location scope only when a rule's value actually differs from the property-level value, so a config that leaves the defaults alone stays small and diffable.
lockEnabled overrides in both directions:
falseon a property that has collapsing on emitsproxy_cache_lock off;for that location.trueon a property that has collapsing off emitsproxy_cache_lock on;.
When collapsing is off for a location, its lockTimeout / lockAge are not emitted — they would have no effect.
Rules created before this setting existed carry an explicit
lockEnabled, so they override the property rather than inherit it. The Global Cache Settings card reports how many rules are overriding; set them back to Inherit to bring them under the property-level policy.
Interaction with backgroundUpdate
When cache.backgroundUpdate: true is set on a rule, an expired cache entry is served immediately to the requester while a background request refreshes the cache. The first background-update request takes the lock, and other in-flight requests for the same object continue receiving the stale entry from cache rather than waiting. This is the preferred mode for hot objects where serving slightly-stale content is acceptable.
6. Cache Key Construction
Default key
The default cache key is $scheme$request_method$host$request_uri. The generator may extend this depending on rule configuration:
- Per-rule
cache.key— when set, replaces the default entirely. Variables in the string are nginx variables;$argsand$normalized_argsare the most common. cache.global.queryNormalization.enabled— when true,$request_uriis replaced in the default key by a derived form that uses$normalized_args(see below).
Query normalization
cache.global.queryNormalization runs entirely in njs (the implementation lives under nginx/njs/query_norm.js and is bound via js_set $normalized_args). The pipeline order is fixed:
- Drop exact —
dropParams[]is matched case-insensitively against the parameter name. Any matching parameter (and its value) is removed. - Drop regex —
dropParamsRegexis applied to each remaining parameter name; matches are removed. - Sort — when
sortParamsis true, remaining parameters are sorted alphabetically by name, with ties broken by value. Duplicate names are preserved.
The point is that ?utm_source=...&utm_medium=... does not invalidate cache entries for the underlying URL, and that ?a=1&b=2 and ?b=2&a=1 produce the same key. Drop lists are typically configured at the fleet level via tier policy; drop regex is reserved for site-specific UTM-style prefixes.
Shared-zone $resource_id: prefix
A cache zone with shared: true is a single nginx proxy_cache_path shared across every site that references it (rather than the usual per-site sub-directory layout). To prevent key collisions between two sites that happen to use the same default cache key for the same URL, OpenCache automatically prepends $resource_id: to the cache key when emitting the location for a shared zone. The $resource_id variable is set per-site to the resource id from the KVS (opencache:edgeResource:<id>), so the actual key becomes <resource-id>:<scheme><method><host><request_uri> (or whatever the rule's custom key is, with the same prefix).
This is invisible to operators — cache.key does not need to be edited to work in a shared zone — but it shows up in X-Cache-Status debugging if you sniff the cache files on disk.
Per-rule custom keys
cache.key is a free-form nginx variable expression. Common patterns:
$scheme$request_method$host$uri$is_args$normalized_args— same as default but force query normalization for one rule that opted in even when global is off.$host$uri— ignore query, ignore scheme. Used for static asset rules where query strings are pure cache-busters and the cdn-applied filename hash is what actually invalidates.$host$uri$cookie_session_tier— include a specific cookie as variance. Cookies reach the cache tier by default, so this works as long as the rule does not stripCookie. Keep the value space small (see the cardinality warning in Handling Dynamic Requests).
7. Cache Decisions
The cache decision for a given request is a sequence of gates. The order is deterministic and is the same regardless of which rule matched.
Bypass vs no-store
cache.bypassis an nginx expression evaluated per request. When truthy, the cache is consulted for write but bypassed for read — the request goes to origin, and the response may still be stored.X-Cache-StatusisBYPASS.cache.noStoreConditionsis an additive set of expressions. When any evaluate truthy, the response is fetched normally but not stored. This is the right knob for "fetch live but never cache pages with?preview=1".
The two settings are independent and may both be active.
Valid responses
cache.validResponses maps a status to a TTL. A key is an exact code (100-599), a whole status class — 2xx (200-299), 3xx (300-399), 4xx (400-499) or 5xx (500-599) — or any, which covers every status no other key covers. Matching is most-specific-first: an exact code wins over its class, and a class wins over any (exact code > class > any). For example, with 200: 12h, 2xx: 1h and any: off, a 200 response is cached for 12 hours, any other successful response for 1 hour, and everything else gets no TTL from the rule.
A TTL is a whole-second nginx time (30s, 12h, 7d; ms is not accepted) or off. off gives the status no TTL from the rule — it does not by itself forbid storage: in respect or merge mode the origin's cache headers can still store the response.
When a status is not mentioned in validResponses and no class or any covers it, nginx falls back to its default behavior, which is to not store the response.
minUses
cache.minUses is the number of times nginx must see an identical cache key before it actually writes it to disk. The default emitted by the generator is 1 (write on the first request). Setting it higher is useful for very large caches where you want to avoid one-shot URLs polluting the cache, trading first-hit MISS storage for cache hit rate.
respectUpstreamCacheControl modes
cache.respectUpstreamCacheControl (per-rule) and cache.global.respectUpstreamCacheControl (site default) control whether upstream Cache-Control directives are honored when deciding TTL. Modes:
respect— the upstream's directives win. If origin sendsCache-Control: no-storewe will not store. If origin sendss-maxage=600we will cache for 10 minutes regardless ofvalidResponses.ignore— upstream directives are dropped entirely.validResponsesis the only TTL input.merge— the more conservative of upstream-derived TTL and rule-derived TTL wins, but capped byupstreamCacheControlMaxAge(see below).
Per-directive control is available via upstreamCacheControlDirectives.respect[] and .ignore[] — useful for "honor s-maxage but ignore max-age" patterns where the origin sets very short max-age for browser cache reasons but larger s-maxage for shared caches like OpenCache.
upstreamCacheControlMaxAge ceiling
When respectUpstreamCacheControl is merge, the upstreamCacheControlMaxAge value is a cap on how high the merged TTL can go. This is the safety knob for "trust the origin's freshness signal, but never cache anything longer than 1 hour". Site-global default lives at cache.global.upstreamCacheControlMaxAge; per-rule overrides at cache.rules[].cache.upstreamCacheControlMaxAge. The implementation lives in njs (nginx/njs/cache_control.js) and runs as part of the response filter — it parses the upstream Cache-Control, computes the effective max-age, applies the cap, and rewrites the header before it is stored.
upstreamCacheControlMaxAge has no effect under respect or ignore modes, because those modes do not perform a merge.
8. Stale Serving
cache.stale enables nginx's proxy_cache_use_stale machinery: serve a previously-cached response when the upstream cannot be reached, has returned an error, or has not yet responded. The trigger set is configured via stale.conditions:
error— TCP-level connection error.timeout— upstream took longer thanproxy_read_timeout.invalid_header— upstream returned malformed HTTP.updating— a refresh is currently in flight (seebackgroundUpdate).http_500,http_502,http_503,http_504,http_403,http_404,http_429— explicit status-code triggers.
Beyond proxy_cache_use_stale, OpenCache implements two related signals via stale.whileRevalidate and stale.whileError:
whileRevalidate— emitstale-while-revalidate=<n>in the responseCache-Controlso browsers and downstream caches also know they may serve stale while we refresh.whileError— emitstale-if-error=<n>for the same reason.
stale.maxAge is the hard ceiling on how old a cached entry may be and still be served as stale. After this, the entry is treated as gone and the request goes to origin normally (and fails normally if origin is unreachable).
9. Cache Tier Policy & Tier Rules
Not to be confused with filling from another PoP when every local tier has missed — see §16 Peer Fill.
The problem
A fleet operator wants to apply uniform cache rules across every site without editing each site's edgeResource document. For example, "every site in this fleet should cache .css and .js files for 1 hour into a shared static_assets zone." Cache tier policy is the mechanism for this.
Storage
Cache tier policy lives in the node-config KVS, not the site-config KVS:
- Fleet defaults —
opencache:nodeConfigDefaults.cacheTierPolicy. Applied to every site at every PoP unless overridden. - Per-PoP overrides —
opencache:nodeConfig:<POP_ID>.cacheTierPolicy. Deep-merged with the fleet defaults (arrays replaced, not appended). A PoP that needs to behave differently — say, an edge PoP with less disk that needs different zone sizes — overrides here.
Policy shape:
zones[]— fullCacheZoneobjects. Appended to every site'scache.zones[]unless that site already has a zone with the same name (in which case the site wins and the conflict is logged).rules[]—CacheTierRuleobjects (see below). Appended to every site's internalcache.tierRules[]field.knownStaticFilesDefaults— provides a fallbackcache.global.knownStaticFilesfor sites that did not set one, and auto-enablescacheKnownStaticFiles: truefor those sites.
CacheTierRule shape
A tier rule is a slimmer cousin of cache.rules[]:
id— unique identifier across the tier policy.priority— higher wins on overlap between two tier rules.match.uriPattern— nginx regex against the URI.match.methods— optional method allowlist.zone— which zone to use.ttl— fixed TTL (novalidResponsesmap; tier rules are intentionally simpler).cacheKey— optional custom key.declineWhenUpstream— array of upstreamCache-Controldirectives that should cause this tier rule to decline caching. Values are'no-store','private','no-cache'.lockEnabled— override request collapse for this tier rule. Omit (ornull) to inherit the resource'scache.global.lockEnabled.stale— override stale config for this tier rule.
Emission semantics
Tier rules are emitted as standalone location blocks after all site routes. The site's own routes always win on a same-URI collision because they were emitted first.
However, there is a subtle interaction: when match.uriPattern has an extractable literal prefix (e.g. ^/static/.*\.css$ has literal prefix /static/), the generator wraps the tier rule's regex location inside an outer location ^~ <prefix> block. nginx's location precedence rules say ^~ prefix matches beat regex locations — even regex locations from the site config. This is intentional: it lets fleet operators carve out URL spaces that take priority over any site behavior, while still allowing sites to opt out (see below) or override specific URIs by using their own ^~ prefix locations.
Opting out
A site can disable all tier policy injection by setting zonesAutoManaged: false at the top level. This is the escape hatch for sites that need full control over their cache layout — typically because the tier policy zones clash with site-specific cache semantics that cannot tolerate fleet-wide rules.
Diagnostic report
Each config-generator run writes _TIER_POLICY_REPORT.txt into the generated configs directory, listing:
- Which sites had policy applied vs opted out.
- Which zones were added per site and which were skipped due to name collisions.
- Which rules were added.
- Memory tier oversubscription (sum of memory zone
maxSizevs declaredMEMORY_CACHE_SIZE). - Tier rule prefix grouping — which rules ended up inside
location ^~ <prefix>wrappers and which stayed as standalone regex locations. - Zone reference validation — site routes / rules that reference a missing zone, fallback zones used by the generator, and missing
knownStaticFileszones.
This file is operator-facing; it is the first place to look when a tier rule does not behave as expected.
10. GeoIP Enrichment
OpenCache loads MaxMind GeoIP2 databases (City + ASN at minimum) at nginx startup. Database loading is decoupled from server config — when the database files are absent, the server still starts, and every $geoip_* variable silently expands to the empty string. This keeps the cache tier operational in lower environments and during the brief window after a node is provisioned but before the GeoIP databases have been synced down.
Variables exposed:
$geoip_country_code,$geoip_country_name$geoip_continent$geoip_region,$geoip_region_name$geoip_city$geoip_postal_code$geoip_latitude,$geoip_longitude$geoip_timezone$geoip_as_org— AS organization, used by the ASN performance dashboard.$geoip_asn— numeric ASN.
Consumers downstream of nginx:
- Upstream
OC-*headers (§3) —OC-IPCountry,OC-IPCity, etc. - Access log fields — typed
geoip_*columns on the warehouse'soc.access_logstable, backing the per-ISP / per-ASN dashboard panels (client-network hit rate and latency percentiles). - Diagnostic endpoints —
/oc-cgi/traceexposes the resolved country code as theloc=field.
11. CORS Override
CORS is configured per site with cors.enabled: true. It applies to every route of the site — there is no per-route or per-URI CORS setting. (The former Apply to Specific URIs switch, cors.applyToUris, never had any effect and is gone from the console; a resource that still stores URI patterns shows a warning on its CORS card, with a Remove URI patterns button.) When enabled, OpenCache takes authoritative control of the CORS response surface:
- The origin's
Access-Control-Allow-Origin,Access-Control-Allow-Methods,Access-Control-Allow-Headers,Access-Control-Expose-Headers,Access-Control-Allow-Credentials, andAccess-Control-Max-Ageare cleared. - The edge then sets the configured CORS values in their place.
This avoids the "two Access-Control-Allow-Origin headers" failure mode that breaks browsers entirely — CORS is one of the few cases where duplicate headers are not just sloppy but actively broken.
The CORS headers are computed for every response, cache hit or miss, from the request's own Origin, so one visitor's allowed origin is never replayed to another from the cache.
Allowed origins
Allow Origin is either any origin (*) or a list of origins. The console saves * as "*" and a list as an array of origins, for example ["https://app.example.com", "https://admin.example.com"]; an older record holding the origins as one comma-separated string works the same and is saved as an array the next time the resource is saved.
Each origin is http:// or https://, a host and an optional port, with nothing after it: https://app.example.com or https://app.example.com:8443. Paths, query strings and user names are not supported, and * cannot be combined with listed origins. To allow every subdomain of a domain, list a wildcard origin such as https://*.example.com (see Wildcard origins). Origins are compared the way browsers send them: lowercase, without the default port (:443, :80) or a trailing /, internationalised domain names in their xn-- form. The host must also fit DNS: at most 253 characters and 63 per label, counted on that xn-- form without one trailing . (IPv6 addresses in brackets are exempt), so the longest origin is 268 characters. The console normalises what you type the same way and refuses to save an entry that is not an origin or whose host is too long.
What OpenCache sends depends on the list:
| Allow Origin | Access-Control-Allow-Origin | Vary: Origin |
|---|---|---|
* | * on every response | not added |
| one origin | that origin on every response (a browser on another origin rejects it) | not added |
| several origins, or any wildcard origin (even alone) | the request's Origin when it is one of the listed origins or matches a wildcard; no CORS header at all otherwise | added to every response |
With several origins or a wildcard, a request whose Origin is not listed (or does not match), or that sends none, gets no CORS headers at all (no Access-Control-Allow-Origin, -Methods, -Headers, -Expose-Headers, -Credentials or -Max-Age). Origin is appended to the Vary the response already carries, so browsers and shared caches keep one copy per origin; on such a site this can lower hit ratios in browsers and downstream CDNs (not in OpenCache's own cache, which does not split on Vary). A response header modification for Vary on the edge resource, a route or a cache rule that overwrites or removes it replaces or removes the appended Origin; a plain add sends its own Vary line next to it.
Several origins need OpenCache v26.10.14 or newer on every serving PoP. A PoP on an older release sends the whole list as one Access-Control-Allow-Origin value, which browsers reject, and still sends Access-Control-Allow-Credentials next to *. * and a single origin work the same on every release.
Wildcard origins
A wildcard origin allows every subdomain of a domain: https://*.example.com, or with a port, https://*.example.com:8443. The * is the whole first label of the host, appears once, and is followed by at least two labels, so https://*.com, https://a.*.example.com, https://*example.com, *.example.com (no scheme) and an IP address after *. are refused. A wildcard is tidied like an origin: HTTPS://*.Example.COM:443/ is saved as https://*.example.com, an internationalised domain in its xn-- form. The domain after *. may be at most 251 characters and 63 per label, so that a matching host still fits DNS's 253.
A wildcard matches a request Origin with the same scheme and port (no port when the wildcard has none) whose host is one or more labels followed by the domain, compared case-insensitively:
| Allow Origin entry | Echoed | Not echoed |
|---|---|---|
https://*.example.com | https://a.example.com, https://x.y.example.com | https://example.com (list it as its own origin), https://evil-example.com, https://example.com.evil.com, http://a.example.com, https://a.example.com:8443 |
https://*.example.org:8443 | https://a.example.org:8443 | https://a.example.org, https://example.org:8443 |
A wildcard makes the response depend on the request's Origin even when it is the only entry, exactly like several origins: a matching origin is echoed, any other gets no CORS headers, Vary: Origin is added, and credentials are sent only together with an echoed origin.
Security: a wildcard trusts every subdomain, present and future. With Allow Credentials on, any page on any matching subdomain can make credentialed requests and read the responses — including a subdomain taken over through a forgotten DNS record, or one that serves user content (customer pages, uploads, previews). List a wildcard only for a domain whose subdomains you fully control; otherwise list the exact origins. Never list one over a shared suffix such as https://*.co.uk: OpenCache cannot tell it from a domain and would allow every site under it. Keep wildcard lists short, too: each request from an origin that is not listed exactly is checked against the wildcards one by one, so use a handful, not hundreds.
Wildcard origins need OpenCache v26.10.14 or newer on every serving PoP. A PoP on an older release sends a wildcard as written, which browsers reject.
Preflight handling
Any OPTIONS request on a cache or proxy route of a CORS-enabled site (and, from v26.10.14, for a known static file such as *.js or *.css when Cache Known Static Files is on) is answered at the edge with a 204 carrying Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers and Access-Control-Max-Age (default 86400), plus Access-Control-Allow-Credentials and Access-Control-Expose-Headers when configured. The origin is never contacted. With several allowed origins or a wildcard the preflight checks Origin too: a listed or matching origin gets those headers and Vary: Origin, any other origin a bare 204 without CORS headers, which the browser treats as a refused preflight.
Credentials
Browsers reject Access-Control-Allow-Credentials: true next to Access-Control-Allow-Origin: *, and OpenCache never echoes an arbitrary origin to make the pair work. So Allow Credentials needs a list of origins (wildcard origins included): the console and the API refuse to save it with *, and a resource that still has the pair gets * without Access-Control-Allow-Credentials (from v26.10.14). With one origin, Access-Control-Allow-Credentials: true is sent on every response; with several or a wildcard, only together with an echoed (listed or matching) origin.
See CORS headers for the header reference.
12. Diagnostic Endpoints
These diagnostic endpoints exist on every site (and on the catch-all server for unrecognized hostnames):
/oc-cgi/health— node health, used by health checks and load balancers./oc-cgi/metrics— node metrics document (JSON)./oc-cgi/trace— Cloudflare-stylekey=valueconnection diagnostic./oc-cgi/cache-io— cache-disk I/O fault counts (JSON).
The entire /oc-cgi/ prefix is reserved — site routes cannot claim a URL under it, and unknown /oc-cgi/* paths return 404. Every /oc-cgi/* response carries Cache-Control: no-store, no-cache, must-revalidate, max-age=0, Pragma: no-cache and Expires: 0, so no browser or downstream cache stores it. See Diagnostic endpoint headers.
/oc-cgi/health
Returns a small JSON document when nginx is up and the configuration is loaded:
$ curl -s https://cache.example.net/oc-cgi/health
{"status":"ok","availability":1,"site":"cache.example.net","server":"...","version":"1.30.4","timestamp":"2026-10-06T10:21:02+00:00"}
server is the node's hostname and version the nginx version. While a node is draining for maintenance the endpoint returns 503 with "status":"draining" and "availability":0, so health checks and load balancers take it out of rotation before it stops serving.
/oc-cgi/metrics
Returns a JSON metrics document from the node's monitoring agent. It answers 503 when the node reports itself unavailable (for example while draining), with a status and reasons describing why.
/oc-cgi/trace
Returns a Cloudflare-style diagnostic body in a stable key=value format, one field per line:
$ curl -s https://cache.example.net/oc-cgi/trace
fl=v26.10.5
h=cache.example.net
ip=203.0.113.42
ts=1791310862.098
visit_scheme=https
uag=curl/8.5.0
colo=inf3-bey1-oix2/494176657117179905
http=http/2
loc=GB
tls=TLSv1.3
sni=plaintext
kex=X25519
Field semantics:
fl— build identity ($oc_build_id). See §13.h— the request'sHostheader.ip—$remote_addr. The IP OpenCache sees you on.ts—$msec(epoch seconds with millisecond precision).visit_scheme—httpsorhttp.uag— theUser-Agentrequest header.colo—<short node name>/<PoP id>. The specific cache node that served the request and the PoP it belongs to.http— Cloudflare-style protocol id:http/1.1,http/2, orhttp/3.loc— the visitor's country code, or empty if GeoIP is not loaded.tls—$ssl_protocol.TLSv1.2,TLSv1.3, etc. Empty over plain HTTP.sni— always the literalplaintext(Encrypted Client Hello is not supported).kex—$ssl_curve. The key exchange curve negotiated for this connection. Empty over plain HTTP.
The same body is served by the catch-all server, so you can curl the trace endpoint at a node by IP (with --resolve) even when no site hostname resolves to it.
/oc-cgi/cache-io
Returns recent cache-disk read failures as JSON, as a rolling count per cache zone: {"zones":{"<zone>":<faults>},"available":true}. An empty zones object means no faults were recorded.
13. Build Identity ($oc_build_id)
Every generated config bakes a build identity into an http-scope variable named $oc_build_id. It is set at generation time from the config-generator's package version:
- A stamped release version (starts with
v) is used verbatim —v26.10.5→$oc_build_id = "v26.10.5". - Any other version gets a
-devsuffix —2.0.0→$oc_build_id = "2.0.0-dev"(a local or unstamped build).
The variable is surfaced via /oc-cgi/trace's fl= field, so you can curl a node and immediately see what it is running — useful when correlating a regression with a deploy.
Build identity is not the nginx binary version — there is a separate $nginx_version for that, and $oc_build_id only tells you which config-generator output produced this nginx config. It is the right identity for cache rule and route changes; for kernel / binary diagnostics you want the image tag from docker image inspect.
14. Logging & Observability
Access log format
The default access log is a JSON-shaped format with structured fields. Among the standard nginx fields ($remote_addr, $request, $status, $body_bytes_sent, etc.), OpenCache adds:
-
$pop_id,$pf_server— the PoP and cache node identifiers. -
$upstream_cache_status—HIT,MISS, etc. Front server block only — on a tiered PoP this readsMISSfor an outer-class miss that a deeper class served (seecache_fillbelow). -
cache_fill— where the served bytes actually came from, accounting for the tier hops:edge— served from this node's cache with no upstream request at all;- a tier class name — that inner class answered the fill; origin untouched. The value is the class name you configured in
cache.tiering.tiers[](e.g.memory,hot,default), so treat it as an open set — do not match against a fixed list; origin— the origin was contacted;- absent — the request did not enter a cache_proxy location.
This is the field to use for origin-offload, because it is correct on tiered and non-tiered PoPs alike, whatever your classes are named:
SELECT countIf(cache_fill != '' AND cache_fill != 'origin')
/ countIf(cache_fill != '')
FROM oc.access_logs WHERE ts > now() - INTERVAL 1 DAY
Both sides require cache_fill != '', which keeps the ratio meaningful over ranges that include log lines predating the field (a missing JSON key lands as '' in the typed column, so a bare cache_fill != 'origin' numerator would count every pre-deploy line and push the figure toward 100%).
It complements cache_zone, which reports which tier was selected; cache_fill reports which one answered. The combination cache_zone=memory, upstream_cache_status=MISS, cache_fill=hot is exactly "memory miss served by the hot tier". A typed column on oc.access_logs (and a dimension of the oc.requests_1m aggregate), so filter it like any other column.
$log_cache_rule_id— the id of the cache rule that matched. Set per-rule viaset $log_cache_rule_id "<id>";in the rendered config. Lets you filter logs by rule.$log_cache_key— the actual cache key used (after query normalization and shared-zone prefixing). Useful for cache debugging — you can grep access logs for a key, see every request that hit it, and confirm normalization is doing what you expect.$log_cache_target_time— the target TTL applied to the response, in seconds. Useful for spotting rules that are caching for the wrong duration.$request_id— the per-request id, returned to the client asPF-Request-IDand sent to the origin asOC-RID. End-to-end correlation primitive.$geoip_country_code,$geoip_as_org, etc. — geo enrichment.dl_bps— observed download throughput for the response, computed from bytes sent and time-to-last-byte. A typed column onoc.access_logswith a t-digest inoc.request_time_1mfor cheap percentiles. Used by the per-client and per-ISP latency dashboards.
Pf-Cache-Timing format
The Pf-Cache-Timing response header follows the Server-Timing syntax: one comma-separated entry per OpenCache node the response passed through. Entries received from an upstream OpenCache node are kept in front; this node's entry is last. Each entry has the form:
<node>;dur=<ms>;desc="cache=<STATUS>[&fill=<edge|tier class|origin>][&age=<s>][&upstream_ms=<ms>][&routeRule=<id>][&cacheRule=<id>]"
<node>— the short node name (the same value asPF-Server).dur— time until response headers were ready at this node, in ms.cache— the cache status (asX-Cache-Status), always present;NONEwhen the request did not go through the cache.fill— where the bytes came from (same values ascache_fillabove).age— seconds the object has been cached; omitted when0.upstream_ms— upstream response time in ms; omitted on a hit.routeRule,cacheRule— ids of the matched route and cache rule.
Optional fields are omitted when empty. For example:
Pf-Cache-Timing: inf3-bey1-oix2;dur=657;desc="cache=MISS&fill=origin&age=1&routeRule=route_default"
See Pf-Cache-Timing for the header reference.
The header uses Server-Timing syntax but is not named Server-Timing, so browser DevTools list it with the other response headers rather than in the timing panel.
Warehouse tables and dashboards
Every access-log line ships (via the node's Alloy) to the self-hosted ClickHouse warehouse, where it lands twice:
oc.otel_logs— the raw JSON body, searchable in HyperDX.oc.access_logs— one typed column per field (pop_id,instance,server_name,resource_id,status,cache_zone,cache_fill,peer_in/peer_out,geoip_*,request_time,dl_bps, …), plus minute-level aggregates (oc.requests_1m,oc.request_time_1m,oc.upstream_time_1m) that back the high-frequency dashboard panels.
The DataStudio OpenCache dashboards (Insights: Overview, Traffic, Bandwidth, Cache, Origin, Performance, Errors, Content, Client Networks, and the Embedded OpenCache insights pages) are built directly on these tables — including client-network breakdowns by geoip_as_org, latency and throughput percentiles (request_time, dl_bps t-digests), and per-PoP fleet views. Ad-hoc exploration is plain SQL or HyperDX.
15. Failover & Retries
nextUpstream policy
cache.proxySettings.nextUpstreamConditions controls when nginx considers an upstream attempt failed and tries the next upstream in the configured load-balancing pool. Allowed values mirror nginx's proxy_next_upstream directive: error, timeout, invalid_header, http_500, http_502, http_503, http_504, http_403, http_404, http_429, non_idempotent, off.
The default emitted by the generator is error timeout — retry on connection errors and timeouts only, not on 5xx response codes. This is deliberately conservative; surfacing the origin's actual 5xx to the client is usually the right behavior because it lets the client decide whether to retry, rather than the cache silently masking origin problems with extra latency.
nextUpstreamTries is the per-request attempt cap (counting the initial attempt). The default is 0 — unlimited within the timeout. nextUpstreamTimeout is the wall-clock cap on the entire upstream selection process. After this, nginx gives up and either returns the most recent upstream error or, if stale.conditions matched, serves stale.
Interaction with stale serving
Failover and stale serving compose: if stale.conditions includes the matching trigger (e.g. http_502), nginx will try the next upstream first, and only fall back to stale once nextUpstreamTries / nextUpstreamTimeout is exhausted. The X-Cache-Status of a stale response after exhausted failover is STALE. Failed attempts do not appear separately in Pf-Cache-Timing: its upstream_ms reflects the last attempt only.
non_idempotent
non_idempotent is the explicit opt-in to retry POST, PATCH, etc. nginx's default is to refuse to retry these because the origin might have already taken effect on a write. Enable it only when your origin is designed for it (idempotency tokens, etc.) — the default of "do not retry mutating requests" is the right one for the overwhelming majority of cases.
16. Peer Fill (filling from another PoP)
A cache miss normally goes to your origin. Peer fill puts other PoPs in between: before contacting origin, the node asks one or more sibling PoPs whether they already hold the object. When one does, it serves the copy, and the origin is never contacted at all.
The point is origin egress. A popular object that ten PoPs all miss at once costs ten origin fetches without peer fill and, in the best case, one with it.
Peer fill sits below the local cache tiers, so a node needs at least two storage tiers configured before it can have peers at all — the peers are consulted only once every local tier has missed.
Peer classes
Peers are grouped into classes, ordered from nearest to furthest — for example local, then regional, then global. On a miss the node walks the classes in order, and within a class it picks an endpoint by the balancing policy. The first class that can serve the object wins; if none can, the request falls through to origin.
The ordering is a cost and latency preference: a PoP in the same building is cheaper and faster to pull from than one on another continent, so it is asked first.
A peer that cannot serve the object answers a short "I don't have it" signal rather than an error, so a miss at one class moves on to the next immediately — it does not wait for a timeout, and it does not count against that peer's health.
Serving other appliances
The inbound half is separate and off by default. An appliance only answers other PoPs' peer requests once Serve other appliances is on; until then it refuses them, and the requesting PoP simply moves on to its next class.
Fetch from origin for peers controls what happens when a peer asks for something this appliance does not have cached. On (the default) it fetches from its own origin and serves the requester, which warms both PoPs from a single origin fetch. Off, it answers "I don't have it" without contacting origin — the requester then goes to its own next peer or origin. Turn it off when you do not want other PoPs' misses generating traffic on your origin.
Loop safety does not depend on either setting: a request that arrived as a peer fill never gets forwarded into this appliance's own peers, so a fill chain is never more than two PoPs deep, no matter how the fleet is wired.
Every appliance with peers checks each of them once per metrics cycle; the Overview shows which ones answer. A peer-only appliance — one that fills its misses only from its peers, with origin as a last resort — goes further: when none of its peers answers, it reports itself unavailable (/oc-cgi/metrics answers 503 with the reason peer-fill-unavailable), so traffic is steered to another PoP until a peer answers again. Any other appliance keeps serving and fills from origin instead.
Raced fill
Walking the classes one at a time costs a round trip per class before origin. For small objects — HLS and DASH playlists, manifests, small JSON — that waiting is the entire cost of the fill.
With raced fill on, the node asks every peer at once (and, optionally, its origin at the same time) and serves whichever useful answer arrives first. In fleet testing this turned a two-second fill into under a millisecond when one peer was slow and another was not.
It is deliberately limited to small objects. A large file's fill time is dominated by how fast the bytes transfer, not by the initial round trip, so "answered first" says nothing about "will finish first" — racing large files would multiply traffic without making anything arrive sooner.
Which objects qualify is measured, not configured. The cache cannot know an object's size before fetching it, so the first fill of any object takes the normal path and its size is recorded; later fills race only if that recorded size is under the Size ceiling. This separates the two populations on its own: a playlist has a stable address that is refetched every few seconds, so it starts racing almost immediately, while a video segment has a unique address fetched once and therefore never races.
The cost is real and worth stating plainly: the peers that lose the race still send their copy, because a request already in flight cannot be called back. Each raced miss therefore costs roughly number of peers × object size in fill traffic, bounded by the size ceiling. Race origin as well adds an origin request to every raced miss, which is what makes a raced miss never slower than going straight to origin.
Peer selection
For the large objects racing deliberately skips, the useful question is which peer is actually fastest.
Balancing within a class is the cheap answer. round_robin takes each peer in turn. least_conn prefers whichever peer has the fewest requests in flight, which means a peer that has stalled stops being chosen without having to fail outright first.
Choose peers by measured speed goes further: each completed fill records how fast that peer was and how often it has failed, and the next fill goes to the best performer rather than the next one in turn. A peer that has not been measured yet is treated as the best option so that it gets tried — otherwise a peer that measured badly once could never win traffic back — and scores expire after a period of no traffic so a peer is always eventually re-tried.
Where to see and change this
The Configuration → Peers page shows your appliance's peer classes, the serving settings, and the raced-fill and selection settings.
Peer classes and the two serving switches are yours to change, through the usual review flow. The raced-fill and peer-selection settings are shown with a padlock: they are fleet-level tuning with real cost implications, so they are set by operations. Contact support if you want them changed.
Every value carries a badge saying where it came from — Overridden (set on your appliance), Inherited (from the fleet defaults), or Default (the cache software's own behaviour, stored nowhere). That distinction matters: only an inherited value moves when the fleet default moves.
17. Signed URL delivery
A site can require a valid MD5 token on every content request. The scheme, signing algorithm, exemptions, and troubleshooting live in the dedicated Signed URLs guide. Configure it on the resource's Security tab.
