VeloEdge

INTEGRATION GUIDE

Point a CNAME at VeloEdge and serve AVIF immediately.

Keep your masters in S3, R2, or GCS. VeloEdge negotiates optimal formats on every request and collapses concurrent cache misses automatically.

01. Declarative Transform URLs

Specify width, DPR, and perceptual quality in the path. `f=auto` serves AVIF to supported browsers with automatic WebP fallback.

https://media.example.com/v/w=1200,q=auto,f=auto,fit=cover/catalog/shoe-04.jpg

02. Origin Shield Policy

Pin regional shield PoPs close to your primary bucket to guarantee single-flight request collapsing.

{
  "origin": "s3://prod-media-masters.us-east-1",
  "shieldRegion": "iad-shield-01",
  "collapseConcurrentMisses": true,
  "staleWhileRevalidateSec": 86400
}

03. Surrogate-Key Purge

Invalidate every cached resolution and codec variant tied to a catalog SKU in one API request.

curl -X POST https://api.veloedge.io/v1/purge   -H "Authorization: Bearer $VELO_API_KEY"   -H "Content-Type: application/json"   -d '{"surrogateKeys": ["sku:49201", "collection:winter-26"]}'