Skip to content

Commit 273de5a

Browse files
authored
Update shared-brotli-fetch-spec.txt
1 parent a755ba3 commit 273de5a

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

fetch-spec/shared-brotli-fetch-spec.txt

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
[DRAFT]
22

3-
Changes for Shared Brotli dictionaries to https://fetch.spec.whatwg.org/:
3+
Introduction:
4+
5+
This document is a draft proposal for Shard Brotli dictionaries in the fetch spec
6+
(https://fetch.spec.whatwg.org/).
7+
8+
The goal is to add support for custom dictionaries for Brotli. A dictionary is used
9+
to improve compression. A client can download a dictionary from a server and then
10+
use it to decompress resources compressed with this dictionary.
11+
12+
This document specifies how the client and server negotiate the dictionary over HTTP.
13+
A high level overview is as follows: The server adds an HTTP header to the response
14+
with a URL of the dictionary. The browser downloads the dictionary from the URL and
15+
then caches it so it can be reused. The server also adds a checksum to an HTTP header
16+
which the client uses to verify the dictionary. Caching, CORS, and other existing
17+
mechanisms are used. A dictionary can be a pre-made static dictionary, but does not
18+
have to be, for example a previous page loaded from this server, or an old version
19+
of a page, can be used as well.
20+
21+
Below are changes and additions to add Shared Brotli dictionaries to the fetch spec
22+
at https://fetch.spec.whatwg.org/:
423

524
Additions to `4.5. HTTP-network-or-cache fetch`
625

0 commit comments

Comments
 (0)