Accept-Encoding in Variants
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 125
- PR merge metrics
- No merged PRs in 30d
Description
When fetching a Signed Exchange, Chromium sets Accept-Encoding request header to gzip, deflate, br. However, actually Chromium accepts differnt set of content encodings for Signed Exchange's outer and inner responses. gzip, deflate, and br are supported for outer responses, and only mi-sha256-03 is supported for inner responses.
This is problematic when performing the Request Matching. For example if exchange has:
Variants: Accept-Encoding;mi-sha256-03
Variant-Key: mi-sha256-03
It will not match the browserRequest which has Accept-Encoding: gzip, deflate, br.
What should we do?
Ideas:
- When making a redirect to the inner response, overwrite the request's
Accept-Encodingheader tomi-sha256-03. - Or, specify that Cache Behavior for Request Matching does not support Accept-Encoding content negotiation, because it makes little sense for signed exchange's inner responses (?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or implementation entry points are mentioned. Start by reviewing the Request Matching and Cache Behavior sections linked in the issue, then determine which Accept-Encoding behavior is intended for Signed Exchange outer and inner responses. Done means the project has an agreed specification or implementation direction for the mismatch.
Written by the indexing model from the issue text.
Assessment
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100