Provide an easy to read serviceWorker.js that does the following:
- Cache a specific set of files.
- Cache files not included in the
serviceWorker.jsfile. - Update cached files on page load.
- Clear out old cache.
- Return cached files when offline or server is unavailable.
- Display an online/offline status.
- Display a message when the cache updates.