- Docs
- Delivery
Delivery
What the edge does with a request: what it caches and for how long, video and large files, purging, headers, error pages, statistics and limits.
- How caching worksThe edge stores a file the first time a viewer asks for it and serves every later request from that copy until it expires, is purged, or is evicted to make room on a full cache.
- Video and large filesVideo needs nothing switching on. A file up to 10 MB is stored whole and a larger one in 5 MB pieces fetched as it is watched.
- PurgingA purge removes cached files from every location within about fifteen seconds, and the next request for them is fetched from your origin.
- HeadersEvery response from the edge carries a few headers of ours, the most useful being X-CDN-Cache, and every request to your origin carries a few that say who really asked. A cached response also keeps a fixed set of your origin's own headers.
- Error pages and status codesA refusal the edge makes itself is a branded page on your hostname; an error your origin returns is relayed with its status and its body, with one exception for a bucket origin, below.
- StatisticsA zone's statistics page shows what it delivered, how much of that came from the cache, what was fetched from your origin, and where the viewers were. Every figure is in UTC, and most of them are available from the API.
- LimitsThe numbers that apply to a zone and an account, in one place. There is no limit on the number of zones, hostnames or purges, none on requests, which are counted but never charged, and none on the size of an upload.
- Server-sent events and WebSocketsServer-sent event streams and WebSockets pass through to your origin on a standard origin, a full site and a tunnel zone alike, with nothing to switch on.