Skip to content

Commit 2f49158

Browse files
committed
let nginx handle gzip compression
1 parent 7d440d4 commit 2f49158

File tree

3 files changed

+0
-29
lines changed

3 files changed

+0
-29
lines changed

package-lock.json

Lines changed: 0 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"cheerio": "^1.0.0-rc.2",
4141
"fuzzball": "^1.2.0",
4242
"koa": "^2.7.0",
43-
"koa-compress": "^3.0.0",
4443
"koa-helmet": "^4.0.0",
4544
"koa-is-json": "^1.0.0",
4645
"koa-json-mask": "^1.0.0",

src/app.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
const cache = require('koa-redis-cache');
3-
const compress = require('koa-compress');
43
const cors = require('koa2-cors');
54
const helmet = require('koa-helmet');
65
const Koa = require('koa');
@@ -45,9 +44,6 @@ const url = 'mongodb+srv://public:[email protected]/spacex
4544

4645
const app = new Koa();
4746

48-
// Gzip all responses
49-
app.use(compress());
50-
5147
// Set header with API response time
5248
app.use(responseTime());
5349

0 commit comments

Comments
 (0)