-
Notifications
You must be signed in to change notification settings - Fork 30
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
Rachana gzip compression #1186
base: development
Are you sure you want to change the base?
Rachana gzip compression #1186
Conversation
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.
Good catch. All requests are supposed to have gzip compression. I'm opening this up for someone else to debug and check whats going wrong. |
Description
The website now includes gzip compression using the compression library. This middleware is configured to compress responses based on content type while considering streaming requirements and server load. Testers should verify that compression works correctly and evaluate overall server performance with and without compression enabled.
Related PRS (if any):
This backend PR is NOT related to any other PR
…
Main changes explained:
"compression": "^1.7.5"
in thepackage.json
file to include the compression library.app.js
usingcompression
middleware. The configuration includes:level: 6
: Balanced compression level for performance and efficiency.threshold: 0
: Ensures all responses are compressed regardless of size.These changes optimize response sizes to improve application performance and reduce bandwidth usage.
…
How to test:
Dont forget to npm install before building and running the application.
localhost
.{i} users
or{i} login
)."gzip"
, indicating compression is applied.Screenshots or videos of changes:
zha_rachana_gzip_comp_testing_video.mp4
Note:
Include the information the reviewers need to know.