<div class="gmail_quote"><br>There hasn't been much discussion of this yet... a few comments on the list between august and november of 2008...<div><br></div><div><span style="border-collapse:collapse"><div style="color:rgb(80, 0, 80)">

> > > [michaeln] How do workers and appCaches interact?<br>> ><br>> > [ian] workers are associated with browsing contexts, so they go through the</div><div style="color:rgb(80, 0, 80)">> > normal app cache networking changes. This probably interacts badly<br>

> > with shared workers used from different app caches. We should probably<br>> > study this more.<br>> ><br>> > Aaron, Maciej, others, do you have opinions on how these should<br>> > interact?<br>

><br>> [michaeln] Seems reasonable to spec that dedicated workers are very related to</div><div style="color:rgb(80, 0, 80)">> their owner, execute in a child browsing context, and consequently<br>> inherit the same appCache.<br>

><br>> Seems reasonable to spec that shared workers are associated with a<br>> browsing context that is very distinct from their clients. Akin to an<br>> "auxiliary top-level browsing context".<br><br>

</div><span style="color:rgb(80, 0, 80)">[ian] </span>The above seems reasonable...<br><div style="color:rgb(80, 0, 80)"><br><br>> Beyond that it gets less clear.<br>><br>> Do sharedWorker.js documents need a <html manifest='url'> equivalent?<br>

<br></div>They don't have one today. I don't really want to add one...<br><div style="color:rgb(80, 0, 80)"><br><br>> Should a shraredWorker loaded from appCacheA be distinct from a named<br>> shared worker loaded from appCacheB or from the network?<br>

<br></div>That seems like a reasonable possibility too...<br><br><br>I haven't fixed this yet.</span></div><div><div></div><div class="h5"><div><span style="border-collapse:collapse"><br></span></div><div><span style="border-collapse:collapse"><br>

</span><br><div class="gmail_quote">On Tue, Mar 24, 2009 at 6:14 PM, Drew Wilson <span dir="ltr"><<a href="mailto:atwilson@google.com" target="_blank">atwilson@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>I'm trying to understand the ApplicationCache spec as it applies to workers, but I didn't find anything promising when I searched the archives. Is ApplicationCache intended to apply to workers? The application cache API isn't available to workers, but I'm guessing the intent is that if an application creates a dedicated worker then worker requests (like importScripts()) would come out of the cache inherited from the parent document. If not, then it seems impossible to support running workers when in offline mode.<br>


</div><div><br></div><div>Since SharedWorkers are shared by multiple windows, there's some ambiguity about which app cache it should use (perhaps always the one from the creator window?) - it seems like an app might get different SharedWorkers() loading from different app caches depending on the order in which different windows create them, which seems like a dubious outcome. Has this been discussed previously?</div>


<div><br></div><div>-atw</div>
</blockquote></div><br></div>
</div></div></div><br>