-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support brotli compression on the server side #142334
Changes from 14 commits
5e1fd7b
0f0abfc
127ede2
226400e
9972c19
3696ef6
bf59350
23c7ad0
a7c30a8
5c94383
9b6009c
40283bf
74ecbdb
40fd9b6
e1e40d0
a310d06
4eb6900
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,14 @@ export default function ({ getService }: FtrProviderContext) { | |
expect(response.header).not.to.have.property('content-encoding'); | ||
}); | ||
}); | ||
|
||
it(`supports brotli compression`, async () => { | ||
await supertest | ||
.get('/app/kibana') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: should we explicitly test it with an API? Just in case /app and /api are served differently (as we do today with bundles)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yea, all these |
||
.set('accept-encoding', 'br') | ||
.then((response) => { | ||
expect(response.header).to.have.property('content-encoding', 'br'); | ||
}); | ||
}); | ||
}); | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2283,7 +2283,7 @@ | |
dependencies: | ||
"@hapi/hoek" "^9.0.0" | ||
|
||
"@hapi/[email protected]", "@hapi/validate@^1.1.1": | ||
"@hapi/[email protected]", "@hapi/validate@^1.1.1", "@hapi/validate@^1.1.3": | ||
version "1.1.3" | ||
resolved "https://registry.yarnpkg.com/@hapi/validate/-/validate-1.1.3.tgz#f750a07283929e09b51aa16be34affb44e1931ad" | ||
integrity sha512-/XMR0N0wjw0Twzq2pQOzPBZlDzkekGcoCtzO314BpIEsbXdYGthQUbxgkGDf4nhk1+IPDAsXqWjMohRQYO06UA== | ||
|
@@ -10959,6 +10959,14 @@ brfs@^2.0.0, brfs@^2.0.2: | |
static-module "^3.0.2" | ||
through2 "^2.0.0" | ||
|
||
brok@^5.0.2: | ||
version "5.0.2" | ||
resolved "https://registry.yarnpkg.com/brok/-/brok-5.0.2.tgz#b77e7203ce89d30939a5b877a9bb3acb4dffc848" | ||
integrity sha512-mqsoOGPjcP9oltC8dD4PnRCiJREmFg+ee588mVYZgZNd8YV5Zo6eOLv/fp6HxdYffaxvkKfPHjc+sRWIkuIu7A== | ||
dependencies: | ||
"@hapi/hoek" "^9.0.4" | ||
"@hapi/validate" "^1.1.3" | ||
|
||
brorand@^1.0.1, brorand@^1.1.0: | ||
version "1.1.0" | ||
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add documentation about
quality
as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woups, I forgot to add the review comment for that one. Actually no 😅 : I added this setting with the intent of keeping it internal (undocumented) for now, as it was mostly to allow us to eventually perform perf testing on cloud environment tweaking the
quality
value.