-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: loading video in browser native video player doesn't send response quick enough #131
Comments
For future triage purposes: the scenario impacted by this bug is when To reproduce:
The bug described here makes (1) take forever because SW does not return headers with status code and content type fast enough. |
Ok.. after debugging this for the last 3 hours in #138.. I can confirm that caching large responses before it has all been fetched causes the service worker to block on that request until it's all consumed. explicitly disabling this for 'video/webm' responses in http://bafybeidsp6fva53dexzjycntiucts57ftecajcn5omzfgjx57pqfy3kwbq.ipfs.helia-sw-gateway.localhost/ result in a 4984ms-12s DOMContentLoaded and TTFB response from the service worker when ran against a completely fresh kubo node: I'm simply blocking the caching with the below check to get these results.
investigating further. |
see #122 (comment)
Basically:
bafybeidsp6fva53dexzjycntiucts57ftecajcn5omzfgjx57pqfy3kwbq
, the browser doesn't seem to get the response until the full stream is resolvedYou can see some examples of how browsers will cancel the first request when it knows it's video content, and then send a byte request immediately after, in this gist: https://gist.github.com/SgtPooki/9efc039d1d349d112d0f505b2ed275c8
The text was updated successfully, but these errors were encountered: