@jaffathecake If I run separate apps (separate codebase) on `/` and `/cool_path` & want to have SW for both, how should I handle ?
-
-
Replying to @kosamari @jaffathecake
can I tell Service Worker scoped to `/` "can you not bother intercepting fetch for /cool_path k thx bai" ?
1 reply 0 retweets 0 likes -
Replying to @kosamari
: just have an early event handler that catches that and calls e. stopPropagation() w/o handling it. /cc
@jaffathecake1 reply 1 retweet 2 likes -
Replying to @slightlylate @kosamari
or have two service workers, and give one a scope of / and the other a scope of /cool_path
2 replies 1 retweet 2 likes -
but isn’t the one with the / scope also intercepting /cool_path? (I think I caused this question)
2 replies 0 retweets 0 likes -
Replying to @notwaldorf @jaffathecake and
I've seen this when I loaded / and its SW first, then tried to load /cool_path later.
2 replies 0 retweets 0 likes -
Replying to @wanderview
: yeah, multiple SWs on an origin need to collaborate. /cc
@notwaldorf@jaffathecake@kosamari2 replies 0 retweets 1 like -
Replying to @slightlylate @wanderview and
this looks like dejavu of of `this` scope :P
1 reply 0 retweets 0 likes
: scoping is hard!
For most sites, most of the time, a single SW is the best option.
/cc @wanderview @notwaldorf @jaffathecake
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.