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

Add gzip compression on responses #11

Merged
merged 2 commits into from
Feb 27, 2024
Merged

Add gzip compression on responses #11

merged 2 commits into from
Feb 27, 2024

Conversation

danyalprout
Copy link
Collaborator

Description

This PR compresses responses with gzip when the client sends the header Accept-Encoding: gzip.

  • JSON encoding
    • Before: 38236 bytes
    • After: 8003 bytes
  • SSZ encoding
    • Before: 21863 bytes
    • After: 12077 bytes

@danyalprout danyalprout merged commit 539dd71 into master Feb 27, 2024
4 checks passed
@danyalprout danyalprout deleted the gzip branch February 27, 2024 17:08
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.

2 participants