서비스워커 자산 캐시 제거

This commit is contained in:
seo
2026-07-21 19:15:33 +09:00
parent 6215139136
commit cf5fe5b050
6 changed files with 32 additions and 32 deletions
+3 -1
View File
@@ -4,6 +4,8 @@
}
window.addEventListener('load', function () {
navigator.serviceWorker.register('/sw.js').catch(function () {});
navigator.serviceWorker.register('/sw.js?v=20260721_nocache1').then(function (registration) {
if (registration && typeof registration.update === 'function') registration.update();
}).catch(function () {});
});
})();