Closed
Description
Today Kestrel does not use any of the HPack compression features when serializing response headers. Dynamic compression is an advanced option we could look into.
Likely candidates:
- Server: Kestrel
- Content-Encoding: gzip
- Content-Encoding: brotli
- Content-Type (and a dozen common values)
- strict-transport-security
Note the client gets more benefits from dynamic compression, especially browsers, they send a lot of repetitive headers. HttpClient would get some benefit for things like :authority, :method, :scheme, accept-encoding,
Related work:
- Static compression Implement HPack static compression #4716
- Huffman encoding Use Huffman code in HPackEncoder #4742