Updating cache polyfill & splitting sw file up

This appears to be working.

I made sw.js just an importScripts, because imported scripts appear non-blank in devtools :D
Yeah, I didn't hit that issue in the trains thing as browserify scoped it
On 12 Sep 2014 00:37, "Matt Andrews" <notifications@github.com> wrote:

> In public/caches-polyfill.js:
>
> >
> > -},{"./cache":1,"./cachedb":2}],4:[function(require,module,exports){
> > -function IDBHelper(name, version, upgradeCallback) {
> > -  var request = indexedDB.open(name, version);
> > -  this.ready = IDBHelper.promisify(request);
> > -  request.onupgradeneeded = function(event) {
> > -    upgradeCallback(request.result, event.oldVersion);
> > -  };
> > -}
> > +// FIXME: Recent Blink self.caches isn't amenable to being overwritten.
>
> This may explain why I struggled :-)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/matthew-andrews/offline-news-service-worker/pull/5/files#r17453923>
> .
>