Why no video on my site could skip ahead for two months
My host sent whole files when a browser asked for part of a video, so nothing could skip ahead. The AI agent that writes my blog patched around it instead of fixing it. The fix, and what else broke.
From August until 7 October you couldn’t skip ahead in any video on this site. My host, Cloudflare, sent the whole file whenever a browser asked for one piece of it. The AI agent that writes this blog every morning found that on 3 October, patched around it in its own feature and left a warning in the blog’s rules file. The next morning it built another feature on the same patch. I noticed on the 7th and had another Claude session audit every special feature. Its fix was a 154-line Worker, a small script that runs on Cloudflare in front of the video files.
To skip ahead, your browser asks the server for just the bytes at that spot, a range request. The answer should be code 206, “here’s your piece.” Mine was 200, “here’s the whole file,” so a video could only jump inside what had already downloaded. Drag past that and it went back to the start.
Check it yourself. Both buttons ask for 1,000 bytes. The first asks a lesson video, through the fix. The second asks a picture, which still goes straight to Cloudflare’s asset server (the part that hands out the site’s files).
- 1,000 bytes from 24 MB into a 25.1 MB lesson video
- 1,000 bytes of a 123 KB picture from another post
What came out of it:
- The agent patched its own feature and left the host alone. Its own warning said to fix the host first.
- A 154-line Worker fixed every video at once. A jump 24 MB into the biggest lesson answered in 0.67 s.
- The same audit fixed three more problems and added a picture viewer that zooms.
- The earlier checks passed for two reasons. The local test server does range requests by itself, and Claude’s test browser doesn’t draw a page it isn’t showing.
What happened when
The site starts serving its files from Cloudflare's asset server.
The first video goes up, in my Minecraft skin post.
My music video post ships a synced player: two cuts of the video play in lockstep beside the lyrics, and clicking a lyric sends both there.
While checking it live, the agent sees a request for part of a video come back
200with the whole file. It makes the player download both cuts in full before a long jump, and adds to the rules:fix it at the host (a Worker route that answers ranges) before building anything else that jumps around in a long video.
My lessons post ships a transcript player: click a line of a lesson's transcript and the video plays from there. Its four videos are 8.3 to 25.1 MB. Same workaround: fetch the whole file, then jump.
I ask for every special feature to be checked:
for 3 of the four videos in the post, the button doesn't work, not only that you cannot navigate through the videos at all
.The Worker and a one-player-at-a-time fix for every post are ready but not live yet, tested against a local copy of the real site.
yes push it
Live: part-of-a-file requests answer
206, the bytes match the files exactly, and a jump 24 MB into the largest lesson answers in 0.67 s.
The workaround was fine for a music video of a few megabytes. For a 25 MB lesson you clicked a transcript line and waited for the whole file. For three of the four videos in my lessons post, nothing moved.
The warning was addressed to whoever came next, and that was the same job the next morning with a post due. It starts each day with no memory but the rules file, the notes every agent reads before touching the blog. It read the warning, and its commit message says it used the workaround because the host ignores ranges.
The fix
There’s no setting to make the asset server send pieces. So the audit session put a Worker in front of the video and audio files only. It cuts out the bytes asked for and answers 206.
How the Worker knows the file's size
- A 206 has to say how long the whole file is, and inside a Worker the asset server doesn’t say.
So the build now writes every media file’s length into a list,
/media-sizes.json, and the Worker reads it once. - The first version kept whole files in Cloudflare’s cache instead. The session replaced it before shipping, because a page of several 20 MB videos could have run a Worker past its 128 MB of memory.
Try it on a lesson from my course, The Hidden Curriculum. Click a line near the end and the video should start there within a second or so.
What else the audit found
I’d listed six posts that misbehaved, and the seek problem explained most of them. The rest you only notice reading the blog as a reader.
- The two synced cuts in my music video post drifted apart, then froze. They now stay together.
- Several videos could play at once. Now starting one pauses the rest.
- The fighting game in my Storm Bell post kept running off screen. It now pauses, and a Stop game button unloads it.
- I wanted to zoom into pictures. Now every picture opens in a viewer that zooms, pans and pages through the post’s other pictures.



How each of those fixes works
- The screenshots are the audit session’s own, from 7 October, taken in Claude’s browser pane on a local copy of the site running the real Worker.
- The synced videos. The player kept the second cut in step by jumping it to the first several times a second. Each jump made the browser throw away what it had buffered, so the second cut stalled for good. Now it speeds the second video up or slows it down by up to 8% until they line up (within 0.04 s in testing), and only jumps when they’re more than 0.6 s apart. One more bug turned up in the rewrite. If both stalled at once, each waited for the other to start playing, and neither ever did.
- One player at a time. A silent loop pauses when you scroll past it and resumes when you come back. Anything with sound keeps playing, with a bar at the bottom of the window that says what it is.
- The game also pauses when the tab is hidden or when anything else on the page plays. Its frames and audio are held, not restarted.
Why the earlier checks passed
Every one of these was checked in a browser before it shipped. The audit session’s notes in the rules file say why that wasn’t enough.
- The local test server answers range requests by itself. That’s the copy of the site an agent runs while it builds, so seeking worked there. The rule now is to test media on the built site with the real Worker.
- Claude’s browser pane, where it checks pages, only draws a page while it’s shown or screenshotted. In between, a video you’ve just scrolled to still counts as off screen, so a feature can pass there and fail for a person.
The audit was one Claude session: 2 hours 30 minutes and 334 tool calls, $35 at API list prices. I’m on a flat subscription.