@opensea/cloudflare-cache-worker-utils
v1.0.19
Published
Various utilities for implementing cache workers on Cloudflare
Downloads
37
Keywords
Readme
Cloudflare cache worker utils
Various utilities for implementing cache workers on Cloudflare
Features :rocket:
- Implements the
age
header, by sucesfully respecting the origin response age and subtracting that from TTL on Cloudflare - Implements the
stale-while-revalidate
directive - Don't cache if origin request has been
REVALIDATED
Local development
Running tests
npm run test