Compression dictionary transport lets a browser download only the parts of a file that changed, instead of the whole file again. Until last week, only Chromium browsers could use it. Now Firefox 161 supports it too. That makes it worth a serious look for any site that ships large JavaScript bundles or similar HTML pages.
In this guide, you will learn what the feature does and which browsers support it. You will also see how to set it up on your own server. Finally, we cover the rules and limits, so you can decide if it fits your stack.
What Is Compression Dictionary Transport?
Normal HTTP compression, such as gzip or Brotli, works inside one file at a time. As a result, every new deploy of app.v2.js is downloaded in full. That happens even when most of the code matches app.v1.js.
Compression dictionary transport fixes this. The server tells the browser to keep an earlier response as a dictionary. Later, the browser asks for a similar file, and the server compresses the new file against that dictionary. Consequently, only the differences travel over the network. This approach is often called delta compression.
The mechanism is now an official IETF standard. It was published as RFC 9842 in September 2025, so it is no longer a Chrome experiment.
What Changed in Firefox 161
Firefox 161 was released on November 24, 2026. The Firefox 161 release notes on MDN confirm support for the full flow. That includes the Use-As-Dictionary response header and the Available-Dictionary request header. It also includes the dcb (Brotli) and dcz (Zstandard) content encodings.
The same release added CSS random(), the CSS Typed Object Model and custom clipboard formats. However, for performance work, dictionary support is the change with the biggest real-world impact.
Browser Support Right Now
Here is where things stand at the end of November 2026:
- Chrome and Edge: supported since version 130, released in late 2024. Other Chromium browsers, like Opera, share the same engine.
- Firefox: supported from version 161.
- Safari: not supported at the time of writing. MDN still marks the feature as limited availability, not Baseline.
The good news is that compression dictionary transport falls back cleanly. A browser without support simply never sends the dictionary headers. Therefore, your server returns normal Brotli or gzip, and nothing breaks.
How Compression Dictionary Transport Works
The flow has three steps. Each step uses plain HTTP headers, so you can follow it in your browser’s network panel.
Step 1: Mark a response as a dictionary
First, the server sends a normal response with a Use-As-Dictionary header. The match value is a URL pattern. It says which future requests can use this file as a dictionary.
HTTP/1.1 200 OK
Content-Type: text/javascript
Cache-Control: public, max-age=31536000
Use-As-Dictionary: match="/js/app.*.js"
Note that the pattern is a URL Pattern, not a regular expression. You can also add an id value. If you do, the browser sends it back in a Dictionary-ID header on later requests.
Step 2: The browser advertises the dictionary
Next, the browser requests a matching URL and sends a SHA-256 hash of the stored dictionary. It also adds dcb and dcz to its accepted encodings.
GET /js/app.v2.js
Accept-Encoding: gzip, br, zstd, dcb, dcz
Available-Dictionary: :pZGm1Av0IEBKARczz7exkNYsZb8LzaMrV7J32a2fFG4=:
Step 3: The server sends a delta
Finally, the server checks for a file compressed against that exact dictionary. If it has one, it replies with Content-Encoding: dcb or dcz. The browser then rebuilds the full file locally. If the hash is unknown, the server just sends the usual Brotli response.
How to Set Up Compression Dictionary Transport
Most teams start with the simplest case. They use the previous version of a bundle as the dictionary for the next one. Here is a practical plan.
Build the dcb and dcz files
Dictionary-compressed files need a small magic header and the dictionary hash in front of the compressed bytes. You can create them at build time with OpenSSL and the Brotli or Zstandard tools. For example, this script builds a dcb file for app.v2.js with app.v1.js as the dictionary:
#!/usr/bin/env bash
# Build app.v2.js.dcb using app.v1.js as the dictionary
DICT=app.v1.js
SRC=app.v2.js
OUT=app.v2.js.dcb
printf '\xffDCB' > "$OUT" # dcb magic header
openssl dgst -sha256 -binary "$DICT" >> "$OUT" # 32-byte dictionary hash
brotli --stdout -D "$DICT" "$SRC" >> "$OUT" # Brotli with the dictionary
The MDN guide to the feature shows the matching steps for Zstandard. In practice, you run this in CI. Then you keep one dcb file for each previous version you still want to support.
Add Vary and cache headers
Your server or CDN now has to pick the right file. If the Available-Dictionary hash matches a file you built, serve it with the right Content-Encoding. Otherwise, serve the regular Brotli version.
Caching needs care here. Add both headers to Vary, so a shared cache never hands a delta to a browser without the dictionary:
Vary: Accept-Encoding, Available-Dictionary
Also, the Cache-Control header on the dictionary response decides whether the browser stores it, and for how long. A short cache lifetime means fewer delta hits.
Use a separate dictionary for HTML
Versioned bundles are not the only use case. You can also build one shared dictionary from common page markup. Then point to it with <link rel="compression-dictionary" href="/dictionary.dat"> or the matching Link header. The browser downloads it during idle time. According to the Chrome team, Google Search used this method. It cut the average HTML payload by 23% compared with standard Brotli.
Test it in the browser
Open DevTools, turn on Preserve log, and load the page twice. On the second load, look for Available-Dictionary on the request. Then check for dcb or dcz in the response. In Chrome, the chrome://net-internals/#sharedDictionary page lists stored dictionaries. You can also clear them there for a fresh test.
How Much Can You Save?
Savings depend on how much a file changes between versions. A bundle that changes by a few lines compresses to a tiny delta. On the other hand, a file that is rewritten on every build gains very little.
With compression dictionary transport, the best candidates are large files that change a little but often. Think of a main JavaScript bundle, a CSS framework build or a set of similar HTML pages. For first-time visitors, nothing changes, because they have no dictionary yet. The benefit shows up for returning visitors, who often make up a large share of traffic on apps and dashboards.
So measure before and after on your own site. Compare the transfer size of repeat visits in DevTools, rather than relying on general claims.
Compression Dictionary Transport Rules and Limits
Compression can leak data through side channels, so the standard adds a few safety rules. Keep these in mind before you roll it out:
- Dictionaries must be same-origin with the resources that use them.
- The match value uses URL Pattern syntax, so regular expressions will not work.
- Responses with personal or secret data are a poor fit. Stick to public, cacheable assets.
- Every extra dictionary version adds build output and server logic, so keep the number small.
In addition, your CDN must forward the new headers and respect the Vary rules. Check your provider’s documentation before you turn anything on in production.
Is It Worth It for WordPress Sites?
For most small WordPress sites, the gain is modest today. Plugins and themes ship many separate files, and they update on their own schedules. Our guide to WordPress script concatenation changes in 7.2 shows that asset delivery is already moving toward HTTP/2 and smaller files.
However, headless WordPress front ends and custom web apps are a different story. They often deploy one large bundle many times a week. For those projects, compression dictionary transport can shrink a large repeat download to a few kilobytes. It also pairs well with other quick wins, such as modern image formats like JPEG XL in Chrome.
FAQ
Do I need to change my JavaScript code?
No. The feature lives entirely in HTTP headers and your build and server setup. Your application code stays the same.
What happens in Safari?
Safari does not send the dictionary headers yet. As a result, it receives your normal Brotli or gzip response, exactly as before.
Is compression dictionary transport the same as SDCH?
No. SDCH was an older Chrome experiment that was later removed. The new standard is better specified and works with Brotli and Zstandard. It also has broader industry support.
Should I use dcb or dcz?
Both work in Chrome and Firefox. Pick the one your server and CDN already handle well. Many teams start with dcb because Brotli is already part of their pipeline.
Conclusion
With Firefox 161, compression dictionary transport now works in the two most widely used browser engines. That makes it a practical tool rather than a Chrome-only experiment. Start with your largest versioned bundle and build one dcb file against the previous version. Then measure the transfer size on repeat visits. If the numbers look good, extend it to more assets or a shared HTML dictionary.
Sources
Need Help With Your Website or Web App?
Swrice builds and customises WordPress sites, plugins and web apps. Whether you need an upgrade, a custom feature or a fix, our team can handle it for you.


Leave a Reply