Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
11 lines
324 B
JavaScript
Executable file
11 lines
324 B
JavaScript
Executable file
importScripts('../bower_components/serviceworkerware/dist/sww.js');
|
|
importScripts('../dist/sww-raw-cache.js');
|
|
|
|
var worker = new ServiceWorkerWare();
|
|
worker.use(new self.StaticCacher(['index.html', 'sw.js']));
|
|
worker.use(new RawCache({
|
|
cacheName: 'rawCache'
|
|
}));
|
|
worker.use(new self.SimpleOfflineCache());
|
|
|
|
worker.init();
|