Skip to content

Commit 57cf312

Browse files
authored
Merge pull request daquinoaldo#3 from daquinoaldo/compression-treshold
Compression treshold
2 parents a919875 + a8f0f14 commit 57cf312

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ app.listen = function(port = process.env.PORT ||
3535
}
3636

3737
// use gzip compression minify
38-
app.use(compression())
38+
app.use(compression({ threshold: 1 }))
3939
app.use(minify())
4040
app.set("json spaces", 0)
4141

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "https-localhost",
3-
"version": "3.0.0",
3+
"version": "3.0.1",
44
"description": "HTTPS server running on localhost",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)