Skip to main content
New

Before cache execution (Preview)

Edge Scripts can now run before the CDN cache layer, giving you full control over every request instead of only executing on cache misses. Enable it per Pull Zone under General > Origin > Run script before cache. Middleware scripts gain two new hooks — onClientRequest (intercept requests before the cache lookup) and onClientResponse (modify responses before they reach the client, including cached ones). Standalone scripts also support before cache execution, running on every request and deciding how responses are cached. Learn more
New
The Node.js file system module now supports symbolic links (symlink(), readlink(), lstat()), returns correct file timestamps (atime, mtime, ctime, birthtime), and enforces owner-level file and directory permissions (chmod(), access(), Stats.mode). Learn more
Improvement

Cache API documentation reorganized into dedicated section

The Cache API documentation has been restructured from a single page into a dedicated multi-page section with separate pages for the API overview and limitations, managing default and named caches, reading and writing cache entries (match, put, delete), and end-to-end examples including a new on-demand refresh and purge recipe. The waitUntil runtime reference has also been expanded with a full API signature and a cache-population example.
New

Runtime API and waitUntil

New Runtime API reference documenting the waitUntil function, which extends script isolate lifetime after a request finishes — ideal for keeping WebSocket connections alive and running background work. The WebSocket guide now includes a waitUntil usage example. Learn more
New

Node.js file system API

A Node.js-compatible file system API is now available in Edge Scripts, allowing you to read and write files directly at the edge. Learn more
New

Node.js file system API

A Node.js-compatible file system API is now available in Edge Scripts, allowing you to read and write files directly at the edge. Learn more
Last modified on August 3, 2026