diff --git a/lib/Server.js b/lib/Server.js index 7b6cdb5a95..bbfe8aa29d 100644 --- a/lib/Server.js +++ b/lib/Server.js @@ -1967,7 +1967,7 @@ class Server { } // compress is placed last and uses unshift so that it will be the first middleware used - if (this.options.compress && !isHTTP2) { + if (this.options.compress) { const compression = require("compression"); middlewares.push({ name: "compression", middleware: compression() });