Browse Source

Editor: Implement cache per update

Mr.doob 4 years ago
parent
commit
412b99a7f2
1 changed files with 2 additions and 2 deletions
  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 ) {