Skip to content

misc: Enable GZip compression for backend responses#999

Merged
gantoine merged 1 commit intorommapp:masterfrom
adamantike:misc/enable-gzip-compression
Jul 14, 2024
Merged

misc: Enable GZip compression for backend responses#999
gantoine merged 1 commit intorommapp:masterfrom
adamantike:misc/enable-gzip-compression

Conversation

@adamantike
Copy link
Contributor

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
@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