소스 검색

Editor: Implement cache per update

Mr.doob 4 년 전
부모
커밋
412b99a7f2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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 ) {