서비스워커 자산 캐시 제거

This commit is contained in:
seo committed 2026-07-21 19:15:33 +09:00
1 parent 6215139136
commit cf5fe5b050
6 files changed
+32 -32

No files matched your search

+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 () {});
});
})();