Re: [w3c/ServiceWorker] A simple globally available store of data per-registration (#1331)

Not for global configuration data one might want to guard fetch-handling
on, e.g.; the goal here would be to avoid needing this sort of thing to be
more delayed (asynchronous) than necessary.

On Sat, 30 Jun 2018, 08:50 Jake Archibald, <notifications@github.com> wrote:

> Does https://github.com/domenic/async-local-storage solve these problems?
>
> On Fri, 29 Jun 2018, 19:20 Alex Russell, <notifications@github.com> wrote:
>
> > Opening IDB is frequently slow and IDB's API is promise-hostile. Neither
> > are great arguments, but taken together it creates a real hurdle for
> > storing global configuration data (e.g., SW "timeout"; a date after
> which a
> > SW should stop handling requests and perhaps unregister itself).
> >
> > On Fri, 29 Jun 2018, 18:20 Marijn Kruisselbrink, <
> notifications@github.com
> > >
> > wrote:
> >
> > > I think Jake's (and at least mine) question is: if this has to be an
> > > asynchronous API anyway, what's the benefit of having something SW
> > specific
> > > over just using a "normal" storage API (i.e. cache storage, IDB or some
> > > not-yet-existing async localstorage style API)?
> > >
> > > —
> > > You are receiving this because you authored the thread.
> > > Reply to this email directly, view it on GitHub
> > > <
> https://github.com/w3c/ServiceWorker/issues/1331#issuecomment-401419372
> > >,
> > > or mute the thread
> > > <
> >
> https://github.com/notifications/unsubscribe-auth/AAF8M498WBiXCvTl0bJCFXi8_z4hB4Hsks5uBmHwgaJpZM4U8F_I
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <https://github.com/w3c/ServiceWorker/issues/1331#issuecomment-401434497
> >,
> > or mute the thread
> > <
> https://github.com/notifications/unsubscribe-auth/AAFtmsGvBcZZSr7-1tk3WTy8WByJusNwks5uBm_egaJpZM4U8F_I
> >
> > .
> >
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/ServiceWorker/issues/1331#issuecomment-401524888>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAF8MyNSdSTXmPLp5-gbsRK1rWW27ykkks5uBy2-gaJpZM4U8F_I>
> .
>


-- 
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/1331#issuecomment-401541235

Received on Saturday, 30 June 2018 13:27:48 UTC