Skip to content

compression.rs does not exclude already-compressed content types #685

@hman38705

Description

@hman38705

Labels: backend, performance
Priority: Low

Description

services/api/src/compression.rs enables gzip/brotli compression for responses. Compressing already-compressed content types (e.g., image/jpeg, image/png, application/zip) wastes CPU without reducing size.

Acceptance Criteria

  • Compression middleware excludes binary/already-compressed MIME types
  • Compression only applied to text-based responses (application/json, text/*)

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions