Open andgest opened 4 years ago
Hmm, not exactly sure what it could be. One theory and issue streamsaver have is that it don't have a solid backpressure to the service worker So it could be that you are writing things too fast. This problem goes away for browser who supports transferable streams The 2nd issue is that chunks are not transferable durning the postMessage (they all get cloned)
My advice to everyone when downloading something from the server is always try to solve it using the server only instead of mimic it in service worker.
it maybe is more related to #145 if you like you could maybe try out my native file system adapter instead. It also has a way to download things via service worker (and dosen't involve any mitm) The packpressure is solved over there since the service worker can talk back to the main thread when it's ready to accept more data. and the data that are sent to the service worker is transferable instead
Hello, I have problems with streamsaver on MacOSX. I tested Firefox 79 on 3 macs with different major OS versions on large downloads (2GB) :
See below my code :
Thank you in advance for your help ! :)