- From: Jungkee Song <notifications@github.com>
- Date: Sun, 14 May 2017 22:20:09 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 15 May 2017 05:20:43 UTC
> I am looking for a solution to create efficient persistent prefetch of selected (static) resources that could be stored for later use with parallel download, but without blocking other on-demand requests. I think the Cache API mostly satisfies your requirements. The cached resources are not deleted until you explicitly call [`cache.delete()`](https://w3c.github.io/ServiceWorker/#dom-cache-delete). The resource fetch - e.g. [`cache.addAll()`](https://w3c.github.io/ServiceWorker/#dom-cache-addall) - doesn't block the caller thread. Those methods can be used in both windows and service workers. > 2, Inside service worker I haven't found any means of how to set low priority to request (HTTP/2) as not to block other on-demand requests. I'm not sure if there has been any proposal for this (to fetch level?) But I'm not sure if this capability is something we'd want to expose to service worker API. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1137#issuecomment-301378671
Received on Monday, 15 May 2017 05:20:43 UTC