From 44623c9d3a1d3c25c78a2b55f01d4b49a24c5fd5 Mon Sep 17 00:00:00 2001 From: Andree Klattenhoff <andree.klattenhoff@open-xchange.com> Date: Thu, 16 May 2024 10:31:02 +0200 Subject: [PATCH] Changed: Set brotli compression quality to 5 --- src/files.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/files.js b/src/files.js index aea63f4..f50b813 100644 --- a/src/files.js +++ b/src/files.js @@ -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' } } -- GitLab