Spaces:
Running

htgudi commited on
Commit
cbc8949
·
verified ·
1 Parent(s): 3a34ebe

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.js +0 -0
  2. sw.js +1 -1
app.js CHANGED
The diff for this file is too large to render. See raw diff
 
sw.js CHANGED
@@ -1 +1 @@
1
- const CACHE_VERSION="aqualab-dffa7c7f01",DEV=["localhost","127.0.0.1"].includes(self.location.hostname),ASSETS=["./","index.html","app.js","manifest.webmanifest","icon.svg","icon-192.png","icon-512.png","apple-touch-icon.png"],RUNTIME_CACHED=/\/(masters|fonts)\//;self.addEventListener("install",e=>{const s=ASSETS.map(t=>new Request(t,{cache:"reload"}));e.waitUntil(caches.open(CACHE_VERSION).then(t=>t.addAll(s))),self.skipWaiting()}),self.addEventListener("activate",e=>{e.waitUntil(caches.keys().then(s=>Promise.all(s.filter(t=>t!==CACHE_VERSION).map(t=>caches.delete(t)))).then(()=>self.clients.claim()))}),self.addEventListener("fetch",e=>{if(e.request.method==="GET"){if(DEV){e.respondWith(fetch(e.request,{cache:"no-store"}).catch(()=>caches.match(e.request)));return}e.respondWith(caches.match(e.request).then(s=>s||fetch(e.request).then(t=>{if(t.ok&&RUNTIME_CACHED.test(new URL(e.request.url).pathname)){const c=t.clone();caches.open(CACHE_VERSION).then(n=>n.put(e.request,c))}return t})))}});
 
1
+ const CACHE_VERSION="aqualab-5feade9207",DEV=["localhost","127.0.0.1"].includes(self.location.hostname),ASSETS=["./","index.html","app.js","manifest.webmanifest","icon.svg","icon-192.png","icon-512.png","apple-touch-icon.png"],RUNTIME_CACHED=/\/(masters|fonts)\//;self.addEventListener("install",e=>{const s=ASSETS.map(t=>new Request(t,{cache:"reload"}));e.waitUntil(caches.open(CACHE_VERSION).then(t=>t.addAll(s))),self.skipWaiting()}),self.addEventListener("activate",e=>{e.waitUntil(caches.keys().then(s=>Promise.all(s.filter(t=>t!==CACHE_VERSION).map(t=>caches.delete(t)))).then(()=>self.clients.claim()))}),self.addEventListener("fetch",e=>{if(e.request.method==="GET"){if(DEV){e.respondWith(fetch(e.request,{cache:"no-store"}).catch(()=>caches.match(e.request)));return}e.respondWith(caches.match(e.request).then(s=>s||fetch(e.request).then(t=>{if(t.ok&&RUNTIME_CACHED.test(new URL(e.request.url).pathname)){const n=t.clone();caches.open(CACHE_VERSION).then(c=>c.put(e.request,n))}return t})))}});