Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.addEventListener('fetch', (event) =>
- {
- event.respondWith(
- caches.match(event.request)
- .then((response) =>
- {
- if (response)
- {
- return response;
- }
- return fetch(event.request);
- })
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement