ARC2 Proxy
Caching Per-domain rule integer · seconds

max_age_seconds

Default cache lifetime for everything served under this domain.

Config key
max_age_seconds
Scope
Per-domain rule
Type
integer · seconds
Default
none

The number of seconds a cached response for this domain is considered fresh before it must be re-fetched from the origin. Acts as the domain-wide default; any matching path rule overrides it for that path.

Choosing a value

  • 0 — effectively no edge caching for the domain default (paths can still opt in).
  • 30–120 — dynamic sites where content changes often but a few seconds of staleness is acceptable.
  • 3600+ — mostly-static sites and assets that rarely change.
💡Static assets
For fingerprinted assets (e.g. app.9f2c.js) push this very high with a path rule — the filename changes when the content does, so stale copies are impossible.
max_age_seconds = 300