Metadata preload seems to be loading the same thing three times |
||
Issue descriptionLoading this page with network devtools on: https://mounirlamouri.github.io/sandbox/preload/test-metadata.html You can see that there are three ranged network requests. One download 0-RANGE, the other x-RANGE and the last y-RANGE. It's unclear if the downloads actually happen or if we use the cache for the other requests but it sounds that we don't.
,
Oct 31 2016
Here is what I see when I load this page: First, we make a request for 0-763969, after reading 32.4kB, we realize that we need to read the index data for the file, which is at the end of the file, so we abort the read and seek to the end of the file. This results in the second request: 753664-763968. After reading that, we know where the video data is in the file, so we go back to the beginning and start reading. However, it turns out that we need more than the first 32kb to decode the first keyframe, so we make a request for 32768-763968/763969. After reading 32.4kb, we have enough data to decode the first keyframe, and since that's all we wanted, we close the connection. Only 0.4kB of data was actually read twice. This is working as intended. |
||
►
Sign in to add a comment |
||
Comment 1 by dalecur...@chromium.org
, Oct 31 2016