Skip to content

feat: add native Brotli + Gzip response compression with per-content-…#42

Merged
Nadhila-dot merged 1 commit intomainfrom
feature/compression
Apr 5, 2026
Merged

feat: add native Brotli + Gzip response compression with per-content-…#42
Nadhila-dot merged 1 commit intomainfrom
feature/compression

Conversation

@layer78
Copy link
Copy Markdown
Collaborator

@layer78 layer78 commented Apr 5, 2026

  • Rust-native compression across all 4 response paths (static, dynamic, JS bridge, cache)
  • Pre-compress static routes at startup (br/gzip/identity × keep-alive/close variants)
  • Per-content-type quality map with wildcard and exact pattern matching
  • JS middleware config carrier (compress.js) + TypeScript types
  • Brotli v8, flate2 for gzip, 1KB min threshold, Vary: Accept-Encoding

…type quality overrides

  - Rust-native compression across all 4 response paths (static, dynamic, JS bridge, cache)
  - Pre-compress static routes at startup (br/gzip/identity × keep-alive/close variants)
  - Per-content-type quality map with wildcard and exact pattern matching
  - JS middleware config carrier (compress.js) + TypeScript types
  - Brotli v8, flate2 for gzip, 1KB min threshold, Vary: Accept-Encoding
@Nadhila-dot
Copy link
Copy Markdown
Collaborator

Done all benchs passed

@Nadhila-dot Nadhila-dot merged commit 54c001f into main Apr 5, 2026
2 checks passed
@layer78 layer78 deleted the feature/compression branch April 8, 2026 14:31
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