Shared Dictionaries: compression that keeps up with the agentic web
Key Points
- Open beta April 30, 2026
- Phase 1 passthrough: dcb/dcz + Use-As-Dictionary support
- Lab: DCZ reduced 272KB → 2.6KB (~97% vs gzip)
Summary
Web pages are getting heavier and are rebuilt and requested far more frequently due to agentic traffic and AI-assisted development. Shared compression dictionaries (RFC 9842) let servers delta-compress new assets against a cached prior version in the browser, sending only diffs instead of whole files. Cloudflare is rolling this out in phases; Phase 1 (passthrough) forwards dictionary headers and encodings and updates cache keys. An open beta for Phase 1 is planned for April 30, 2026.
Key Points
- Problem: frequent deploys and agent traffic break caching — users often re-download large bundles even for tiny changes.
- Solution: delta compression uses a previously cached resource as the dictionary so the server sends only the diff (no separate dictionary file required).
- Standard & security: RFC 9842 fixes SDCH-era problems (same-origin restrictions mitigate many side-channel risks); cross-browser support is rolling out (Chrome/Edge shipped, Firefox in progress).
- Phase 1 (passthrough): Cloudflare forwards Use-As-Dictionary, Available-Dictionary and content-encoding dcb/dcz, and extends cache keys to vary on Available-Dictionary and Accept-Encoding. Origin must emit dictionary-compressed responses and headers; Cloudflare will not modify these encodings in passthrough.
- Phase 2: Cloudflare will manage dictionary lifecycle (inject headers, store dictionaries, delta-compress) so origins don’t have to implement the full flow.
- Lab performance (example): 272KB uncompressed asset → 92.1KB with gzip → 2.6KB with DCZ using previous version as dictionary. Measured timings (lab): cache-miss DCZ completed in ~31ms vs gzip 166ms; cache-hit 16ms vs 143ms. Results depend on actual delta.
How engineers can prepare
- For Phase 1 testing (beta Apr 30, 2026): enable the feature on your Cloudflare zone and serve dictionary-compressed responses from your origin with headers Use-As-Dictionary and Content-Encoding: dcb or dcz.
- Ensure client-side support in your user base: Chrome 130+ and Edge 130+ advertise dcb/dcz; Firefox support is forthcoming.
- Validate cache behavior: expect additional cache variants per dictionary hash and encoding; monitor storage and hit-rate patterns during deploys.
- Test with representative bundle diffs to quantify real-world savings and watch for edge cases around dynamic content and varying resources.
Notes and caveats
- Delta-compression adds some compute at compression time (small TTFB overhead on cache-miss) but typically yields large transmission and download-time wins.
- Security and spec maturity are much improved versus historical attempts, but implementations must respect same-origin rules and usual caching semantics.
Next steps
- Watch Cloudflare changelog for the Phase 1 beta on April 30, 2026 and follow the documentation to opt in and test.