Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zstandard compression format for Content-Encoding #168

Closed
nidhijaju opened this issue Apr 13, 2023 · 7 comments
Closed

Zstandard compression format for Content-Encoding #168

nidhijaju opened this issue Apr 13, 2023 · 7 comments
Assignees
Labels
from: Google Proposed, edited, or co-edited by Google. from: Meta Proposed, edited, or co-edited by Meta. position: support topic: http Spec relates to the HTTP (Hypertext Transfer Protocol) family of protocols topic: networking venue: IETF Document is published by the IETF, but it's unclear if it's from a more specific body there.

Comments

@nidhijaju
Copy link

nidhijaju commented Apr 13, 2023

WebKittens

@annevk @ekinnear

Title of the spec

Zstd Content-Encoding

URL to the spec

https://datatracker.ietf.org/doc/html/rfc8878

URL to the spec's repository

No response

Issue Tracker URL

No response

Explainer URL

https://docs.google.com/document/d/1aDyUw4mAzRdLyZyXpVgWvO-eLpc4ERz7I_7VDIPo9Hc/edit?usp=sharing

TAG Design Review URL

No response

Mozilla standards-positions issue URL

mozilla/standards-positions#775

WebKit Bugzilla URL

https://bugs.webkit.org/show_bug.cgi?id=279815

Radar URL

rdar://28546450

Description

Zstandard, or "zstd", is a data compression mechanism, described in RFC8878, providing high compression ratios. The proposal is to add "zstd" to the tokens in the Accept-Encoding header, and decompress with Zstandard when the token is seen in the Content-Encoding header. It is anticipated to make pages load faster and reduce serving costs, by reducing CPU and/or bandwidth consumption, especially for dynamic content.

Chrome is currently evaluating implementing this, and is interested in other browsers' position on the specification.

@hober hober added topic: networking topic: http Spec relates to the HTTP (Hypertext Transfer Protocol) family of protocols venue: IETF Document is published by the IETF, but it's unclear if it's from a more specific body there. from: Google Proposed, edited, or co-edited by Google. from: Meta Proposed, edited, or co-edited by Meta. labels Apr 26, 2023
@hober hober moved this from Unscreened to Needs position in Standards Positions Review Backlog Apr 26, 2023
@annevk
Copy link
Contributor

annevk commented May 12, 2023

Hey @nidhijaju thanks for your request, we'll have a look at "zstd". You may or may not be familiar with this, but currently Content-Encoding is rather poorly specified and has a number of interoperability issues. whatwg/fetch#716 goes into this. Have you looked at tackling that as part of adding new features to it?

@ekinnear
Copy link
Collaborator

This may depend on support by the network stacks below WebKit, but additional content encodings that offer better compression can potentially lead to improvements in user visible performance. That is worth exploring, and measuring the impact in the real-world while evangelizing to increase deployment offers an opportunity to deliver wins for end users.

As such, I propose we label this with position: support 7 days from now.

@krassx
Copy link

krassx commented Aug 12, 2024

Hi, is there any progress on bringing the Zstandard support to WebKit and consequently to Safari? According to caniuse, Safari is the only one (of major browsers) lacking support for zstd at the moment of writing.

I've been evaluating zstd for quite a while and it seems to be a good replacement in various scenarios for gzip, but the absence of support in all major browsers prevent switching to it.

Thank you in advance.

@ekinnear
Copy link
Collaborator

Hi @krassx! We continue to evaluate bringing Zstandard support to WebKit and are excited to hear that it may be delivering user-visible benefits for loading performance. Thanks for the note of support, feedback on what would be most helpful and beneficial is always appreciated!

@tats-u
Copy link

tats-u commented Sep 17, 2024

https://bugs.webkit.org/show_bug.cgi?id=279815

Posted an issue

@sandstrom

This comment was marked as duplicate.

@tats-u

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Google Proposed, edited, or co-edited by Google. from: Meta Proposed, edited, or co-edited by Meta. position: support topic: http Spec relates to the HTTP (Hypertext Transfer Protocol) family of protocols topic: networking venue: IETF Document is published by the IETF, but it's unclear if it's from a more specific body there.
Development

No branches or pull requests

7 participants