Here we've implemented some techniques to cache the resources as:
You can check these implementations in sw.js file.
You can access https://pwabrazil.github.io/sw-cache-techniques/ to see this repo in action. Try go to offline after SW installation.