Explorar o código

Editor: Implement cache per update

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
412b99a7f2
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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 ) {