Read the remainder of the service worker configuration in app/javascript/sw.js. Look up anything you don't understand in the Workbox docs. To read more about service workers, click here.
app/javascript/sw.js