The WordPress core should be built in mind with the usage of service worker solutions. In such way, the theme and plugin Devs can take advantage of the technology in a more convenient way. Currently there are some plugins using the advantages of SW.js but they all are built very differently.