The range request section is the useful part here. Answering an audio element's Range: bytes=0- request with a full cached 200 is an easy mistake, and slicing the stored buffer into a 206 keeps seeking working. Splitting favourites into their own cache that never gets auto-trimmed is a nice touch too.
StackShortlist
Proof Over Promises.
The range request section is the useful part here. Answering an audio element's Range: bytes=0- request with a full cached 200 is an easy mistake, and slicing the stored buffer into a 206 keeps seeking working. Splitting favourites into their own cache that never gets auto-trimmed is a nice touch too.