Skip to content

engine: honour Retry-After when retrying a rate-limited module fetch - #260

Merged
tannevaled merged 1 commit into
mainfrom
fix-module-retry-after
Oct 4, 2026
Merged

tannevaled merged 1 commit into
mainfrom
fix-module-retry-after

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

A module answered 429 was retried after a fixed 150ms and 300ms, inside the window the origin asked us to wait, and could be dropped, breaking the page. Module retries now wait for Retry-After when present, reusing the image path's parsing.

  • New test: stash-verified (old code drops the module at 0.46s, fixed code fetches it after 1.0s).
  • Saved Tailwind, Wikipedia and HN renders are pixel-identical before and after.
  • Patch-level fix: no API change.

🤖 Generated with Claude Code

A module answered 429 was retried after a fixed 150ms and 300ms, inside the
window the origin asked us to wait, and could be dropped, breaking the page.
Reuse the image path's Retry-After parsing so the wait matches the origin's
request. Stash-verified: the old code drops the module at 0.46s; the fix
fetches it after the 1s the origin asked for.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit d39b3b2 into main Oct 4, 2026
7 checks passed
@tannevaled
tannevaled deleted the fix-module-retry-after branch October 4, 2026 17:14
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.

1 participant