Created
October 2, 2017 07:39
-
-
Save osvaldasvalutis/cc07c59e3746b39627213648a8444be5 to your computer and use it in GitHub Desktop.
Service Worker gotchas – https://medium.com/kollegorna/service-worker-gotchas-af20a9dab986
This file contains hidden or 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
if(criticalResources.includes(url.pathname)) | |
addToCache(criticalsCacheName, request, responseCopy); | |
else if(type.startsWith('image')) | |
addToCache(imagesCacheName, request, responseCopy); | |
else | |
addToCache(otherCacheName, request, responseCopy); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment