differential HTTP compression ships
Compression Dictionary Transport cuts repeat JS/CSS bundle updates 80-90% via RFC 9842 XtremeJS ConferenceTL;DW
- Compression Dictionary Transport is a new RFC 9842 standard that uses prior HTTP responses as dictionaries to compress subsequent responses, reducing repeat bundle updates by 80-90%.
- Unlike static dictionaries (Brotli's built-in web text), compression dictionaries are custom per-site, capturing your app's specific classes, variable names, and code patterns that static dictionaries never see.
- First visitor pays full cost downloading complete bundle; subsequent visitors on each new deploy receive only the delta (diff) compressed against the previous version they cached.
- HTTP content negotiation handles all compression—no app code, no imported decoders needed; browser automatically uses compression-dictionary if server supports RFC 9842 and client advertises availability.
- Differential compression (BSDIFF, VCDIFF) is proven across game updates, OS patches, and streaming services, compressing binary diffs to 3% of original size; compression dictionary extends this to web bundles for the first time.
- Chrome shipped compression dictionary support in 2023 behind a flag; Safari and Firefox also support it, making it available across modern browsers despite initial limited rollout.
- Text-only compression—images and binary assets cannot use compression dictionary; most benefit applies to JavaScript and CSS bundles where changes between versions are small.
- Dictionary is not a separate file to build and distribute; it's already-cached HTTP responses automatically tagged with use-as-dictionary headers and referenced by hash on subsequent requests.
- Content-Encoding: dcb header signals server's response is compressed using dictionary compression (Brotli or Gzip with external dictionary per RFC standards).
- Static Brotli dictionaries provide ~70% text compression; compression dictionary compounds savings for returning users, achieving cumulative efficiency gains across repeat deployments without application changes.
TL;DW
- Compression Dictionary Transport is a new RFC 9842 standard that uses prior HTTP responses as dictionaries to compress subsequent responses, reducing repeat bundle updates by 80-90%.
- Unlike static dictionaries (Brotli's built-in web text), compression dictionaries are custom per-site, capturing your app's specific classes, variable names, and code patterns that static dictionaries never see.
- First visitor pays full cost downloading complete bundle; subsequent visitors on each new deploy receive only the delta (diff) compressed against the previous version they cached.
- HTTP content negotiation handles all compression—no app code, no imported decoders needed; browser automatically uses compression-dictionary if server supports RFC 9842 and client advertises availability.
- Differential compression (BSDIFF, VCDIFF) is proven across game updates, OS patches, and streaming services, compressing binary diffs to 3% of original size; compression dictionary extends this to web bundles for the first time.
- Chrome shipped compression dictionary support in 2023 behind a flag; Safari and Firefox also support it, making it available across modern browsers despite initial limited rollout.
- Text-only compression—images and binary assets cannot use compression dictionary; most benefit applies to JavaScript and CSS bundles where changes between versions are small.
- Dictionary is not a separate file to build and distribute; it's already-cached HTTP responses automatically tagged with use-as-dictionary headers and referenced by hash on subsequent requests.
- Content-Encoding: dcb header signals server's response is compressed using dictionary compression (Brotli or Gzip with external dictionary per RFC standards).
- Static Brotli dictionaries provide ~70% text compression; compression dictionary compounds savings for returning users, achieving cumulative efficiency gains across repeat deployments without application changes.
Instead of compressing each response from scratch, servers use a prior cached response as a Brotli dictionary, sending only the diff between deploys. Chrome already supports it; adoption requires only HTTP header negotiation, no application code changes. First visit pays full price; returning users see 80-90% transfer savings.
