I'm having an Angular PWA application which checks for a service worker updates every 15 seconds, meaning the app sees if the cached static files are still valid. If there was a new deployment the service worker will silently update the cache and let the user know that there are updates available and if he/she wants to refresh.
This scenario is alright if the user is currently using the application. But let's say if the user is not using the application. Is it possible to update the cache even when the browser is closed? I am thinking this might be possible because once the service worker is registered it can listen to push notifications so is it possible to automatically update the cache of an application as well?