I'd like to make a PWA available offline. It requires a large catalog (thousands) of small (2kb) files though. The total weight is ~ 15mb, which is reasonable if a user wants to install but too much to precache on first visit — and too much for WorkBox regardless (which seems to choke and die partway through an install).
Is there some (cross browser) mechanism wherein a set of files can be cached only after a user decides to add to home screen?
(window.onAppInstalled could be a solution for Chrome and FF but it doesn't work in Safari as far as I can tell.)