- From: Ben Kelly <notifications@github.com>
- Date: Wed, 24 Jun 2015 08:37:19 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
Received on Wednesday, 24 June 2015 15:37:52 UTC
``` cache.backgroundDownloadThisPlease(request); ``` Is this the same thing as background sync? What about something like `cache.append(request, response)` which does a match on request, then appends response to its body. It would reject if the headers don't match, isn't a range request, etc. This could also allow the status code to be updated from 206. Just a thought. Alternatively, we could do nothing and make the SW do the merging in script. Once Streams is more widely available this could be done in a memory efficient way. It would just be a fair amount of boilerplate to write. Match all your partial responses, create a new response with a pipe body, and then concat the partial responses into the new pipe. --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/713#issuecomment-114913660
Received on Wednesday, 24 June 2015 15:37:52 UTC