itk-vtk-image-viewer
Version:
ITK/VTK Image Viewer
37 lines (34 loc) • 827 B
JavaScript
importScripts('workbox-sw.prod.v2.1.2.js');
const workboxSW = new self.WorkboxSW({clientsClaim: true})
workboxSW.precache([
{
"url": "favicon-32x32.png",
"revision": "7b1da026f1c9dc9d8caadbe4bdb7b2a8"
},
{
"url": "index.html",
"revision": "5bbf64f8bd7ef25cf88932bf2a7c634c"
},
{
"url": "itkVtkImageViewer.js",
"revision": "f36ff3b97d09c4322972b9144f437a96"
},
{
"url": "test.html",
"revision": "a7927ae23ec755b9f0b3110a5d316f80"
},
{
"url": "workbox-sw.prod.v2.1.2.js",
"revision": "685d1ceb6b9a9f94aacf71d6aeef8b51"
}
])
workboxSW.router.registerRoute(
/\.js|\.png|\.wasm$/,
workboxSW.strategies.staleWhileRevalidate({
cacheName: 'staleWhileRevalidateContent',
cacheExpiration: {
maxEntries: 50,
maxAgeSeconds: 7 * 24 * 60 * 60 * 26,
}
})
);