Type Alias DictionaryOptions
type DictionaryOptions = {
base?: RegExp | readonly RegExp[] | ((pathname: string) => boolean);
cacheBytes?: number;
encoder: DictionaryEncoder;
formats?: readonly DictionaryFormat[];
match?: RegExp;
maxBytes?: number;
}
base?: RegExp | readonly RegExp[] | ((pathname: string) => boolean);
cacheBytes?: number;
encoder: DictionaryEncoder;
formats?: readonly DictionaryFormat[];
match?: RegExp;
maxBytes?: number;
}
Properties
Optionalbase
base?: RegExp | readonly RegExp[] | ((pathname: string) => boolean)
Which of those responses register as dictionaries, as a function of the pathname, a regular
expression or a list of them; default every one match accepts. The others get no
Use-As-Dictionary, so the browser holds only the bases you name, and they are still encoded
against a base the request names.
Optionalcache Bytes
cacheBytes?: number
bytes of dictionaries kept in memory, the least recently used going first; default 16 MiB
encoder
produces the compressed stream; see DictionaryEncoder
Optionalformats
the codings offered, in order of preference, when the request accepts them; default ['dcz']
Optionalmatch
match?: RegExp
the paths that become and use dictionaries, tested against the pathname; default /\.(?:css|m?js)$/i
Optionalmax Bytes
maxBytes?: number
largest body kept as a dictionary or encoded, in bytes; default 2 MiB
what
spoolProxy({ dictionary })takes