-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Use brotli compression for some KP assets #64367
Conversation
b709690
to
4947ce3
Compare
Pinging @elastic/kibana-platform (Team:Platform) |
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.
Overall LGTM, just one minor request.
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.
LGTM
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.
LGTM (code only)
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
# Conflicts: # packages/kbn-ui-shared-deps/package.json # renovate.json5 # src/dev/renovate/package_groups.ts
Summary
This adds new compressed outputs to @kbn/optimizer and @kbn/shared-ui-deps along with code in our bundle serving logic to select the best/correct compression based on the client's preferences specified in the
Accept-Encoding
header. Brotli compression decreases bytes sent across the network by ~30%.Note that browsers will only include
br
in theAccept-Encoding
header when connecting over HTTPS.I have spoken to the Cloud Networking team and they do not anticipate any problems with their load balancers processing brotli-compressed responses. Unfortunately we won't be able to test this until this makes into a nightly snapshot which we can easily deploy to Cloud staging. There are integration tests ready to go in this PR for this test case.
Release Notes
Kibana instances served over HTTPS will now benefit from improved asset compression on most JS & CSS files. This decreases network transfer by about 30% in most scenarios.
Checklist
Delete any items that are not applicable to this PR.
For maintainers