Skip to content

Caching ​

Site details → Cache: cache static content on edge nodes to reduce origin load and speed up delivery.

Cache

Cache Rules ​

  1. Turn on Enable site cache.
  2. Add rules. Match by Extension (e.g. jpg css js), Directory, Exact path, Home or All, then choose cache or bypass and the cache time.
  3. Rules are evaluated top to bottom; the first match wins.
  4. For large files, turn on Slice to cache in 1 MB segments.

Not Cached ​

The following are never cached:

  • Requests other than GET / HEAD
  • Requests with Authorization
  • Responses with Set-Cookie, private or no-store

Purge Cache ​

After updating content on the origin, click Purge cache to clear this site's cache on all nodes. Subsequent requests go back to the origin. Purges per site are limited; the page will tell you when the limit is reached.