You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 (?)
The text was updated successfully, but these errors were encountered:
In the long run, I think it'll be useful to support encoded inner responses in bundles to optimize local disk storage. Since signed exchanges don't need to be random access, it's less important to support compressing the inner response if that makes the implementation trickier.
I think it'll be useful to support encoded inner responses in bundles to optimize local disk storage. Since signed exchanges don't need to be random access
👍
it don't make any since to (de)encode things like video and images that are already compressed... So it would be wasteful to compress the hole web bundle
When fetching a Signed Exchange, Chromium sets
Accept-Encoding
request header togzip, deflate, br
. However, actually Chromium accepts differnt set of content encodings for Signed Exchange's outer and inner responses.gzip
,deflate
, andbr
are supported for outer responses, and onlymi-sha256-03
is supported for inner responses.This is problematic when performing the Request Matching. For example if exchange has:
It will not match the
browserRequest
which hasAccept-Encoding: gzip, deflate, br
.What should we do?
Ideas:
Accept-Encoding
header tomi-sha256-03
.The text was updated successfully, but these errors were encountered: