Re: [w3c/ServiceWorker] Proposal: pass custom params in ServiceWorkerRegistration for future use (#1157)

@laukstein 

> serviceWorker works also in private browsing (incognito window), while IndexedDB doesn't not in Firefox (similar with localStorage in Safari)

This is a common mistake in standards discussion (and don't worry about it, it's a mistake I've made many times before). You cannot compare the current state of things, beholden to reality, with a utopian implementation of some currently non-existent thing.

While IndexedDB may not currently work in Firefox when in incognito mode, your `customParamFoo` proposal doesn't currently work in *any* browser, incognito or not.

> I wouldn't want serviceWorker to wait for async IndexedDB response to get `version`, `urlsToCache`, etc. it would impact serviceWorker response time.

Do you have data on the performance issue here? It could be something that's fixable. If looking up data is inherently slow, your `customParamFoo` proposal will take that hit every time the service worker starts up, whether the developer needs that data or not.

-- 
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/1157#issuecomment-306441010

Received on Tuesday, 6 June 2017 10:07:32 UTC