Skip to content
Snippets Groups Projects
Commit 44623c9d authored by andree.klattenhoff's avatar andree.klattenhoff
Browse files

Changed: Set brotli compression quality to 5

parent 8f9a4545
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,11 @@ export async function fetchFileWithHeadersFromBaseUrl ({ path, baseUrl, version
result.body = await gzip(result.body)
result.headers['content-encoding'] = 'gzip'
} else {
result.body = await brotliCompress(result.body)
result.body = await brotliCompress(result.body, {
params: {
[zlib.constants.BROTLI_PARAM_QUALITY]: 5
}
})
result.headers['content-encoding'] = 'br'
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment