Skip to content

feat: use compression in express server #2680

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

Merged
merged 2 commits into from
Feb 12, 2021
Merged

feat: use compression in express server #2680

merged 2 commits into from
Feb 12, 2021

Conversation

jpoehnelt
Copy link
Contributor

@jpoehnelt jpoehnelt commented Feb 5, 2021

This adds the compression middleware with default settings. Fixes #2679. This greatly improves loading performance over my horrible internet!

With compression:

Screenshot 2021-02-05 10 10 40 AM

Screenshot 2021-02-05 10 10 50 AM

Without compression:

Screenshot 2021-02-05 10 09 42 AM

Screenshot 2021-02-05 10 08 22 AM

@jpoehnelt jpoehnelt marked this pull request as ready for review February 5, 2021 17:12
@jsjoeio jsjoeio modified the milestones: v3.8.1, v3.8.2 Feb 5, 2021
@jsjoeio jsjoeio self-requested a review February 8, 2021 18:26
Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

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

Thanks for opening an issue and raising a PR @jpoehnelt 🎉

All looks good to me. Going to ask @code-asher to give a second-look who is more familiar with the Express app side of code-server.

@jsjoeio jsjoeio requested a review from code-asher February 9, 2021 17:19
Copy link
Member

@code-asher code-asher left a comment

Choose a reason for hiding this comment

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

Those are some great savings. Thanks for the PR!

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.

3 participants