ikinci temizlik tamamlandı
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
self.addEventListener('install', (event) => {
|
||||
event.waitUntil(
|
||||
caches.open('app-cache').then((cache) => {
|
||||
return cache.addAll([
|
||||
'/',
|
||||
'/assets/manifest.json',
|
||||
'/assets/favicon.png'
|
||||
]);
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
self.addEventListener('fetch', (event) => {
|
||||
event.respondWith(
|
||||
caches.match(event.request).then((response) => {
|
||||
return response || fetch(event.request);
|
||||
})
|
||||
);
|
||||
});
|
||||
Reference in New Issue
Block a user