How the edge cache works
The edge stores responses keyed by URL (and selected headers / query params). On the next request for the same key, it serves the cached copy until TTL expires.General Info

General Info
Rule Configurations

Rule Configurations
TTL recipes
Verify cache behavior
age is seconds since the edge cached this object. When age approaches max-age, the next request triggers a revalidation.
Cache key tuning
By default the cache key ishost + path + sorted query string. You typically want to drop:
- Tracking params —
utm_*,fbclid,gclid. They don’t change the response. - Session-style params — only on truly static assets.
Compression
Tenbyte CDN supports Gzip (and increasingly Brotli) at the edge. Enable on text-based MIME types only — already-compressed binary (images, video, archives) gains nothing.Manage via API
Operational tips
- Tune by hit ratio. Cache hit ratio below 80% on static content usually means a noisy query string or wrong TTL.
- Stale-while-revalidate where supported. Origin can emit
Cache-Control: max-age=60, stale-while-revalidate=86400for a smooth deploy story. - Don’t
Never Cacheeverything. Even short TTLs (5–10 s) blunt traffic spikes hard. - Purge before changing TTL down. A long-cached object stays cached for the original TTL — cut TTL and purge to roll out.
- Watch
Vary. Origin returningVary: User-Agentfragments the cache by browser. Strip or narrow at the edge.