Selaa lähdekoodia

Editor: Implement cache per update

Mr.doob 4 vuotta sitten
vanhempi
commit
412b99a7f2
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      editor/sw.js

+ 2 - 2
editor/sw.js

@@ -1,4 +1,4 @@
-// r126.1
+const cacheName = 'threejs-editor-r126';
 
 const assets = [
 	'./',
@@ -214,7 +214,7 @@ const assets = [
 
 self.addEventListener( 'install', async function () {
 
-	const cache = await caches.open( 'threejs-editor' );
+	const cache = await caches.open( cacheName );
 
 	assets.forEach( function ( asset ) {