GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: enable compression middleware for http/2 by bjohansebas · Pull Request #5638 · webpack/webpack-dev-server

Conversation

@bjohansebas

@bjohansebas bjohansebas commented Jan 26, 2026

Copy link
Copy Markdown
Member

Summary

Compression should work fine in HTTP/2, at least when using the compatibility mode that is already used when creating the server here, see expressjs/compression#129 and https://github.com/expressjs/compression/pull/170.”](https://github.com/expressjs/compression/pull/170

What kind of change does this PR introduce?

Did you add tests for your changes?

Does this PR introduce a breaking change?

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@bjohansebas
feat: enable compression middleware for http/2
456fcca
alexander-akait
alexander-akait approved these changes Jan 26, 2026
View reviewed changes
@codecov

codecov Bot commented Jan 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.56%. Comparing base (1a30c21) to head (456fcca).
⚠️ Report is 1 commits behind head on next.

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #5638   +/-   ##
=======================================
  Coverage   83.56%   83.56%           
=======================================
  Files          11       11           
  Lines        1947     1947           
  Branches      723      724    +1     
=======================================
  Hits         1627     1627           
  Misses        287      287           
  Partials       33       33           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

alexander-akait
alexander-akait reviewed Jan 28, 2026
View reviewed changes

@alexander-akait alexander-akait left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Can we add a test case for connect here just to prove it really works

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjohansebas reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@bjohansebas

bjohansebas commented Jan 28, 2026

Copy link
Copy Markdown
Member Author

sure i will do

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjohansebas

bjohansebas commented Jan 28, 2026

Copy link
Copy Markdown
Member Author

But compression is enabled by default, so is this still necessary?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait

alexander-akait commented Jan 29, 2026

Copy link
Copy Markdown
Member

@bjohansebas Oh, yeah, we you right we have https://github.com/webpack/webpack-dev-server/blob/main/test/e2e/app.test.js#L22

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait merged commit 18704b6 into next Jan 29, 2026
93 of 150 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait deleted the compression-http2 branch January 29, 2026 10:16
@chenjiahan chenjiahan mentioned this pull request Mar 3, 2026
fix: enable compression middleware for HTTP2 connections rstackjs/rspack-dev-server#116
Merged
bjohansebas added a commit that referenced this pull request May 23, 2026
@bjohansebas
feat: enable compression middleware for http/2 (#5638)
e410dea
bjohansebas added a commit that referenced this pull request Jun 12, 2026
@bjohansebas
feat: enable compression middleware for http/2 (#5638)
17fda73
bjohansebas added a commit that referenced this pull request Jul 1, 2026
@bjohansebas
feat: enable compression middleware for http/2 (#5638)
7caa200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@alexander-akait alexander-akait alexander-akait approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@bjohansebas @alexander-akait
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.