서비스워커 자산 캐시 제거
This commit is contained in:
@@ -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 () {});
|
||||
});
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user