Whenever I try to get to the 'caches' in the context of a service worker in Javascript, I encounter the following error:
[1206/094424:WARNING:quota_manager.cc(1808)] Create directory failed for path
Here's some sample code that returns the error.
- Code: Select all
var CACHE_NAME = 'simple-sign-v';
var APP_VERSION = 1;
var cacheName = CACHE_NAME + APP_VERSION;
var urlsToCache = [
'/',
'/enplug/simplesignsdk/app/i18n/translations.json',
'fonts/Knockout-47.otf',
'https://fonts.googleapis.com/css?family=Chewy|Rock+Salt|Source+Code+Pro|Tangerine|Rambla|Aldrich|Roboto|Poiret+One|Sigmar+One&subset=latin,greek,cyrillic,latin-ext,cyrillic-ext,greek-ext,vietnamese',
'img/emojione.sprites.svg',
'sw.js'
]
/**
* Installs service worker.
*/
self.addEventListener('install', function (e) {
e.waitUntil(caches.open(cacheName).then(cache => {
return cache.addAll(urlsToCache).then(
// Success
() => {
console.log(`Simple Sign service worker v${APP_VERSION} installed.`);
self.skipWaiting();
},
// Error
(error) => {
console.error(`Could not install Simple Sign service worker v${APP_VERSION}.`, error);
});
}))
});
Is there a special flag I need to start CEF with?