Use Service Worker with the Rails asset pipeline
rossta/serviceworker-rails has 584 GitHub stars.
It currently ranks #12785 daily, #13798 weekly, #17163 monthly by momentum on Trending Repos; its best-ever rank is #5664.