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

client/web: add support for zst precomppressed assets #12170

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raggi
Copy link
Member

@raggi raggi commented May 17, 2024

This will enable us to reduce the size of these embedded assets.

Updates tailscale/corp#20099

Copy link
Member

@soniaappasamy soniaappasamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally to make sure things all still work okay

@raggi raggi force-pushed the raggi/web-zst-precompress branch 4 times, most recently from c6cfb56 to 5071bbb Compare May 17, 2024 22:01
@raggi raggi requested a review from soniaappasamy May 17, 2024 22:01
@raggi
Copy link
Member Author

raggi commented May 17, 2024

I updated some more to do the build side, and tested against chrome with a local workspace setup, updating the build in the prebuilt repo locally. I caught a window size limit error with chrome, and that is also now fixed, so these are serving successfully now with precompressed zstd.

@raggi raggi force-pushed the raggi/web-zst-precompress branch 4 times, most recently from 211b9ca to a9637fd Compare May 17, 2024 22:13
Copy link
Member

@soniaappasamy soniaappasamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, once this gets in, we can run the following two actions (in this order) to update the prebuilt assets then make sure everything looks okay:

  1. https://github.com/tailscale/web-client-prebuilt/actions/workflows/update-assets.yml
  2. https://github.com/tailscale/tailscale/actions/workflows/update-webclient-prebuilt.yml

@raggi raggi force-pushed the raggi/web-zst-precompress branch 6 times, most recently from d1f3ef8 to 6bbddf3 Compare May 17, 2024 22:34
This will enable us to reduce the size of these embedded assets.

Updates tailscale/corp#20099

Signed-off-by: James Tucker <james@tailscale.com>
@raggi raggi force-pushed the raggi/web-zst-precompress branch from 6bbddf3 to f39ac7d Compare May 17, 2024 22:36
return f, nil
}
}
if tswebutil.AcceptsEncoding(r, "br") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's time to drop Brotli to make up for the increased cost/size of adding zstd?

Safari users can use gzip for now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants