Skip to content

crates.io: Enable dynamic compression for text responses#1120

Merged
marcoieni merged 2 commits into
rust-lang:masterfrom
Turbo87:compress-static-responses
Jul 15, 2026
Merged

crates.io: Enable dynamic compression for text responses#1120
marcoieni merged 2 commits into
rust-lang:masterfrom
Turbo87:compress-static-responses

Conversation

@Turbo87

@Turbo87 Turbo87 commented Jul 15, 2026

Copy link
Copy Markdown
Member

This sets X-Compress-Hint and Vary: Accept-Encoding on eligible text, JSON, and XML responses to enable response compression for these files.

@marcoieni marcoieni force-pushed the compress-static-responses branch from 462c43d to 459d129 Compare July 15, 2026 10:08
@marcoieni

Copy link
Copy Markdown
Member

rebased to include #1121 in your changes

@marcoieni marcoieni force-pushed the compress-static-responses branch from 459d129 to f30eb08 Compare July 15, 2026 10:45
@marcoieni

Copy link
Copy Markdown
Member

rebased once more to include #1122

This sets `X-Compress-Hint` and `Vary: Accept-Encoding` on eligible text, JSON, and XML responses to enable response compression for these files.
@Turbo87 Turbo87 force-pushed the compress-static-responses branch from f30eb08 to 7128b3f Compare July 15, 2026 10:47
Comment thread terragrunt/modules/crates-io/compute-static/src/compression.rs Outdated
@marcoieni

Copy link
Copy Markdown
Member

deployed in staging 👍

@Turbo87

Turbo87 commented Jul 15, 2026

Copy link
Copy Markdown
Member Author

deployed in staging 👍

thanks! I ran a few checks and it seems to work as intended :)

@marcoieni marcoieni merged commit bdb3c3f into rust-lang:master Jul 15, 2026
5 checks passed
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