Dictionary-ID header
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.
The HTTPDictionary-ID
request header references a dictionary that can be used inCompression Dictionary Transport to compress the server's response.
A server can indicate that a resource can be used as a dictionary by sending theUse-As-Dictionary
header with the response. The server may include anid
directive in theUse-As-Dictionary
header, thus assigning an ID value to the dictionary. If the server does this, then when the browser requests a resource that can be compressed using the dictionary, the resource request must include theDictionary-ID
header, and its value must match the ID that was given inUse-As-Dictionary
.
This allows the server to identify and find a dictionary that is referenced by some arbitrary key, rather than having to use thedictionary hash as a key (if that approach is used, the server will have to hash every response that includes theUse-As-Dictionary
header just in case the resource might eventually be used as a dictionary).
Note that while the server can identify and locate the dictionary from itsDictionary-ID
, it must still check the hash from theAvailable-Dictionary
header to confirm that it is a correct match.
See theCompression Dictionary Transport guide for more information.
In this article
Syntax
Dictionary-ID: "<string-identifier>"
Directives
<string-identifier>
A string representing the dictionary's server-assigned ID.
Examples
For example, suppose the server has sent aUse-As-Dictionary
header containing anid="dictionary-12345"
directive:
Use-As-Dictionary: match="/js/app.*.js",
When the client requests a matching resource, it will include thisid
value in aDictionary-ID header
:
Accept-Encoding: gzip, br, zstd, dcb, dczAvailable-Dictionary: :pZGm1Av0IEBKARczz7exkNYsZb8LzaMrV7J32a2fFG4=:Dictionary-ID: "dictionary-12345"
Specifications
Specification |
---|
Compression Dictionary Transport> # name-dictionary-id> |
Browser compatibility
Loading…