Documentation

Point a CNAME at the edge and we will pull from your origin on first request.

1. Create the record

assets.example.com.  CNAME  edge.cdnrelay.site.

2. Configure the origin

origin: https://origin.example.com
cache:
  default_ttl: 3600
  stale_while_revalidate: 86400

3. Purge

curl -X POST https://api.cdnrelay.site/v1/purge \
  -H "Authorization: Bearer <token>" \
  -d '{"paths":["/static/app.css"]}'

Caching behaviour

Responses with Cache-Control: private or Set-Cookie are never cached. Range requests are passed through to the origin.

← Back to overview