TL,DR: In a recent electron-based project we took advantage of service workers and the new cache API…