News for hackers. Stuff that matters.
Re:How to store your app's entire state in the url by robryk on Wednesday January 11, 2023 @09:15AM (#34338691)
The header compression in http2 has atypical requirements places upon it: contents of different headers in a single request must not impact each other's compressed size[^], lest an attacker able to manipulate one of them can use that to guess the other. Thus, LZ77-style compression is out of the window, as well as using Huffman codes selected based on _all_ the header values. In essence, each header value (in a single request) has to be compressed independently. IIUC the dictionary you reference is used for header keys (as opposed to values).

[^] this statement is a bit of a lie for reasons of simplification

There are no comments on this comment yet.