WICG / WICG/webpackage

Accept-Encoding in Variants

Open
#390 2 comments 0 reactions 0 assignees View on GitHub

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-Encoding header to mi-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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.