why service worker creating default cache

71 views Asked by At

I am using sw-toolbox to implement service worker. I am creating caches by giving cache name in toolbox.router.get function. but still it is creating a default cache with name($$$toolbox-cache$$$http://localhost/bank-po-practice/$$$$$$inactive$$$)

toolbox.router.get('/js/*', toolbox.cacheFirst, {cache : {name : 
cacheMap.js, maxEntries: 5}});
toolbox.router.get('/views/partials/practice/*', toolbox.cacheFirst, 
{cache : {name : cacheMap.html, maxEntries: 5}});

Actually I don't need that cache as I am defining cache name every time, so it is always empty. So how can I prevent that from creating?

0

There are 0 answers