Re: [slightlyoff/ServiceWorker] Enabling multiple Service Workers for a single scope (#921)

> This seems false? Like every event, the first-registered listener executes first. If you want to go first, just insert your importScripts at the top, and have your fetch handler call respondWith immediately.

I think what they want is for each handler to be able to incrementally improve the Response.

You still have an ordering problem, though.  What if your compression handler runs first, and then their pull-from-cache handler runs second?  Some kind of coordination is needed.

---
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/921#issuecomment-229692775

Received on Thursday, 30 June 2016 15:21:50 UTC