Nodejs - HTTP Range support / Partial file download
问题 I am creating a music web app that streams MP3s that I have stored in MongoDB(GridFS). My Question: How can I add http range support so that I can start streaming the audio file 1/2 of the way through without having to wait for the buffer. I know GridFS supports reading for X bytes - X bytes, so basically I just need to know how to get nodejs to understand it only needs bytes X - X. Thanks! 回答1: The client will send a Range header specifying the absolute starting and ending bytes followed by