Skip to content

Serve byte ranges for the homepage video (Safari/iOS) - #7

Merged
drewmattie-code merged 1 commit into
mainfrom
fix/video-byte-ranges
Sep 30, 2026
Merged

drewmattie-code merged 1 commit into
mainfrom
fix/video-byte-ranges

Conversation

@drewmattie-code

Copy link
Copy Markdown
Owner

Workers static assets ignore Range and always return 200 with the whole file; Safari and iPhone browsers won't play an mp4 served that way. A thin wrapper around the OpenNext worker (web/custom-worker.ts) answers Range requests for /video/* with 206/416, and assets.run_worker_first sends only /video/* through it. Tested on wrangler dev: bytes=0-1, open-ended, suffix, past-end (416), no Range (200), missing file (404), homepage and other assets unchanged, sliced bytes match the file.

🤖 Generated with Claude Code

@drewmattie-code
drewmattie-code merged commit 28bcc98 into main Sep 30, 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.

1 participant