Skip to content

Edge Cache

Pin it once. Serve it even when your origin can't.

Edge Cache stores your most important files permanently at all 988 locations. They never expire, never get evicted, and keep serving if your origin goes dark.

Included with every CDN plan at no extra cost.

Hit rate on pinned files
100%
Origin requests for them
0
Locations holding a copy
988
Extra cost
$0

How it works

One upload, 988 copies, no expiry date

A normal cache is a guess about what visitors will ask for next. Edge Cache is a promise: these files are always there.
  1. Upload once

    Push static assets from the dashboard or the API. Versioned filenames work best.

  2. Every location keeps a copy

    Each file is stored at all 988 locations up front, not fetched the first time someone asks.

  3. Answered at the edge, always

    Requests are served from the nearest location, whether your origin is healthy, slow or offline.

Why pin instead of cache

No expiry, no eviction, no cold misses

Standard caches drop objects when a TTL runs out or a node needs the space, and the next visitor waits for your origin. Pinned files skip that cycle entirely.
  • Every request for a pinned file is a hit
  • Your origin is never asked for it again
  • No limit on how much you pin

Origin failover

Your origin goes down. Your pages still load.

When the origin times out or returns errors, pinned files are still answered from the nearest location, with no extra configuration. Visitors get the stylesheet, the scripts and the images they need while you fix the server.
  • Pinned files never need the origin again
  • No health checks or failover rules to set up
  • Unpinned paths fall back to your origin as normal

Configuration

Pair it with long TTLs and versioned names

Give everything else sensible cache rules too. Long-lived, fingerprinted assets get a year; HTML stays fresh; APIs pass straight through. When a file changes, ship a new name and purge the old one.
Deployment config: caching
{
  "caching": {
    "defaultTtl": 86400,
    "respectOriginHeaders": true,
    "rules": [
      { "path": "/static/**", "ttl": 31536000 },
      { "path": "/*.html",    "ttl": 300 },
      { "path": "/api/**",    "bypassCache": true }
    ]
  }
}

What to pin

Pin what breaks the page if it goes missing

If losing a file for five minutes would break something, pin it. Anything that changes per visitor or per deploy belongs to normal cache rules.

Pin it

  • Bundles and vendor chunksThe JavaScript every page loads before it can do anything.
  • Stylesheets and web fontsSo pages never flash unstyled or fall back to system fonts.
  • Logos, icons and hero imagesSmall, shared and requested on every page view.
  • Installers and release binariesLaunch-day downloads that would otherwise stampede your origin.
  • Game patches and asset packsPulled by thousands of clients in the same minute.
  • Status and help docsPages that must load during the incident they describe.

Leave it to cache rules

  • HTML that changes each deployGive it a short TTL and purge on release.
  • API responsesBypass the cache or cache briefly by path.
  • Signed-in and personalised pagesThey differ per visitor, so they shouldn't be shared.

FAQ

Edge Cache, explained

How is this different from a long cache TTL?
A TTL is a maximum, not a guarantee. Nodes still evict cold objects to make room, and each location fills its cache on the first request. Edge Cache stores the file at every location up front and never evicts it.
What happens if my origin goes down?
Pinned files keep serving from the edge as normal. Anything that isn't pinned or cached falls back to your origin as usual, so pin the files your pages can't render without.
How do I update a pinned file?
Upload the new version under a new, versioned filename and update your references. That gives you instant rollback, too. You can also purge a path when you need to remove something.
Is there a storage limit?
No. There's no cap on how much you pin, and no extra charge for it. Edge Cache is included with every CDN plan.
Can I pin dynamic content?
Edge Cache is for static files. Personalised pages and API responses should use normal cache rules or bypass the cache.

Make your origin optional

Pin the files your site can't live without and let the edge carry them, on the free tier and every plan above it.

Free tier: 3 deployments and 500k requests a month, hard-capped. Bandwidth is always $0.