Skip to content

Add gzip compression for eligible API responses#1044

Open
sitarua wants to merge 1 commit into
rohitdash08:mainfrom
sitarua:codex/finmind-129-api-compression
Open

Add gzip compression for eligible API responses#1044
sitarua wants to merge 1 commit into
rohitdash08:mainfrom
sitarua:codex/finmind-129-api-compression

Conversation

@sitarua
Copy link
Copy Markdown

@sitarua sitarua commented May 14, 2026

Closes #129

Summary

  • gzip JSON and text-like 2xx responses when clients send Accept-Encoding: gzip
  • skip small, already encoded, non-2xx, and streaming/direct-passthrough responses
  • add Vary: Accept-Encoding and focused compression tests

Tests

  • PYTHONPATH=packages/backend python -m pytest packages/backend/tests/test_compression.py

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.

API response compression & payload optimization

1 participant