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

misc: Enable GZip compression for backend responses #999

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

adamantike
Copy link
Collaborator

With the introduction of non-paginated responses for ROMs, JSON responses for big collection could easily be at >1MiB.

This change adds a FastAPI-provided middleware to enable GZip compression for responses greater than 1KiB.

With the introduction of non-paginated responses for ROMs, JSON
responses for big collection could easily be at >1MiB.

This change adds a FastAPI-provided middleware to enable GZip
compression for responses greater than 1KiB.
Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omfg how did i miss this?

@gantoine gantoine merged commit d8ffc1a into rommapp:master Jul 14, 2024
3 checks passed
@adamantike adamantike deleted the misc/enable-gzip-compression branch July 14, 2024 15:34
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