Created
May 2, 2024 20:31
-
-
Save ahmetilhn/05c3f4ebf5e4b69212db1f2d909acbcf to your computer and use it in GitHub Desktop.
Service worker cache only strategy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.addEventListener('fetch', event => { | |
// sadece cache'teki veriyi geri dönder | |
event.respondWith( | |
caches.match(event.request) | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment