Skip to content
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

Compress API responses #3343

Merged
merged 1 commit into from Jun 26, 2023
Merged

Compress API responses #3343

merged 1 commit into from Jun 26, 2023

Conversation

dullbananas
Copy link
Collaborator

This causes the server's responses to be compressed when the client sets the required Accept-Encoding header. This is automatically done by the JavaScript fetch function, so the frontend code doesn't need to be changed.

@Nutomic Nutomic merged commit b2a9d4a into LemmyNet:main Jun 26, 2023
1 check passed
@Nutomic
Copy link
Member

Nutomic commented Jun 26, 2023

The compress features of actix-web used to be extremely slow to compile, looks like that was fixed somehow.

@dullbananas dullbananas deleted the compress branch June 27, 2023 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants