Skip to content

Commit

Permalink
remove some old code
Browse files Browse the repository at this point in the history
  • Loading branch information
m7medVision committed Feb 17, 2024
1 parent a51bfc6 commit 24fb2dd
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions static/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,4 @@ self.addEventListener('fetch', async function (event) {
);
}
// TODO: Implement cache strategy
// if (no_cache_urls.includes(url)) {
// event.respondWith(fetch(event.request));
// } else {
// event.respondWith(
// caches.match(event.request).then(function (response) {
// if (response) {
// return response;
// } else {
// if (event.request.method === 'GET') {
// return fetch(event.request).then(function (response) {
// return caches.open(CACHE_NAME).then(function (cache) {
// cache.put(event.request, response.clone());
// return response;
// });
// });
// } else {
// return fetch(event.request);
// }
// }
// })
// );
// }
});

0 comments on commit 24fb2dd

Please sign in to comment.