Skip to content

crates.io: Return 416 for unsatisfiable Compute ranges - #1244

Merged
ubiratansoares merged 1 commit into
rust-lang:masterfrom
Turbo87:static-range-416
Oct 1, 2026
Merged

ubiratansoares merged 1 commit into
rust-lang:masterfrom
Turbo87:static-range-416

Conversation

@Turbo87

@Turbo87 Turbo87 commented Sep 30, 2026

Copy link
Copy Markdown
Member

The Fastly Compute cache can return 206 with a byte range starting at or beyond the archive size while sending the complete archive body. The service now replaces that response with an empty 416 and an unsatisfied Content-Range, preventing invalid download resumes.

Related

The Fastly Compute cache can return `206` with a byte range starting at
or beyond the archive size while sending the complete archive body. The
service now replaces that response with an empty `416` and an
unsatisfied `Content-Range`, preventing invalid download resumes.

@ubiratansoares ubiratansoares left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two questions from me

Comment thread terragrunt/modules/crates-io/compute-static/src/main.rs
Comment thread terragrunt/modules/crates-io/compute-static/src/main.rs

@ubiratansoares ubiratansoares left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied to staging in case you want to give a it a try, otherwise we I can apply to prod and merge this. Lmk!

@Turbo87

Turbo87 commented Oct 1, 2026

Copy link
Copy Markdown
Member Author

Applied to staging in case you want to give a it a try

thanks! I've verified that this seems to fix the issue :)

I guess ideally this should be fixed on the Fastly side, but the workaround is good enough for now 😅

@ubiratansoares

Copy link
Copy Markdown
Contributor

Applied to prod!

@ubiratansoares
ubiratansoares merged commit 3db50ee into rust-lang:master Oct 1, 2026
8 checks passed
@Turbo87
Turbo87 deleted the static-range-416 branch October 1, 2026 11:16
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.

Fastly returns 206 response instead of 416

2 participants