Re: [ServiceWorker] DOMParser within ServiceWorkers (#846)

If you want this done on the client I think you should just use read-through-caching.  You can then just use <link rel="prefetch"> for resources you want to aggressively load/cache.

Alternatively, you can have your server pre-compute the list of resources and cache them in your service worker install event.

I think trying to parse html on the fly would be the least efficient way to go here.

Would either of those solutions work for you?

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/846#issuecomment-198451664

Received on Friday, 18 March 2016 16:54:58 UTC