Specify compression level for Brotli compression

Otherwise the default max quality will be used which is extremely slow.
This commit is contained in:
Zaid Abdulla committed 2021-01-13 14:21:07 -08:00
1 parent edcee33780
commit 03c3c456eb
1 file changed
+5
+5
View File
@@ -259,6 +259,11 @@ koa.use(
deflate: { deflate: {
flush: constants.Z_SYNC_FLUSH, flush: constants.Z_SYNC_FLUSH,
}, },
br: {
params: {
[constants.BROTLI_PARAM_QUALITY]: 5,
},
},
}) })
); );