mirror of
https://github.com/google/brotli.git
synced 2026-09-22 06:35:52 +00:00
Embed hash of dictionary in compressed resource (optionally) #504
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pmeenan on GitHub (Apr 9, 2024).
It would be useful if, when using a raw dictionary for compression, the compressor could embed a hash of the dictionary that was used during compression. Then, at decompression time, if the hash is present and doesn't match the provided dictionary the decompression would fail. It could also be used to identify which dictionary in a set of dictionaries was used at decompression time.
For the HTTP content-encoding we are currently passing the dictionary hash as an additional response header but that depends on the header and the resource always being together. It would be cleaner if the payload itself could contain the dictionary information.
See https://github.com/httpwg/http-extensions/issues/2770
@pmeenan commented on GitHub (Apr 29, 2024):
Closing in favor of #1167