Do not cache range requests#169
Do not cache range requests#169ThatHackerDudeFromCyberspace wants to merge 1 commit intoruby:masterfrom
Conversation
Fixes video streaming on Chrome
|
Can you check what headers the browser is sending? It looks like the I don't think this patch is correct, since the server should return 304 in the cases where Additionally, the patch should only include updated tests. |
|
I had a go at fixing this here - #173 Note that most of this was done by AI, so I'm not very comfortable making this PR but let's see! |
File streaming, at least for videos is broken in the current version of Webrick

It seems that Chrome (and other browsers?) closes the initial
Rangerequest early, as such the server believes that the rest of the file is cached by the browser despite this not being the case.As such, when the browser requests the rest of the file, the server responds with 304 - which causes streaming to fail
A simple fix for this is simply to not cache range requests