Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
OX App Suite
Core
ui-middleware
Commits
44623c9d
Commit
44623c9d
authored
10 months ago
by
andree.klattenhoff
Browse files
Options
Downloads
Patches
Plain Diff
Changed: Set brotli compression quality to 5
parent
8f9a4545
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.js
+5
-1
5 additions, 1 deletion
src/files.js
with
5 additions
and
1 deletion
src/files.js
+
5
−
1
View file @
44623c9d
...
...
@@ -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
'
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment