I am curious about the possibility of resuming an incomplete fetch request if it fails due to a non-code-related issue, like a lost network connection.
In one of my current projects, we send a large download via AJAX to the client after they log in. This response can be over 70mb and may take some time to complete. The progress is shown as a readable stream to keep the user informed.
My concern is whether it's feasible to pick up where we left off if the user's network connection drops during the download, or if we have to start from scratch. I've researched how the fetch API operates, how browsers manage downloads, and how the XMLHttpRequest object works with the fetch API. It seems that most major browsers support partial downloads (referencing this KeyCDN post), with additional help from the web server sending the file. However, I haven't found any evidence of this capability within the fetch API. Any insights on this matter would be welcomed.