0

My SPA is running in prod and i want to reload the page whenever a deployment is done. I can make this work by specifying interval to check for update every X minute but that won’t be the appropriate way. Can anyone suggest how to make this work out to let service worker automatically tell my application that an update is available?

4

1 回答 1

0

只要有版本更改,您就可以发送推送通知。

您的服务人员可以检测并相应地处理它

https://developers.google.com/web/ilt/pwa/introduction-to-push-notifications

于 2020-05-09T20:20:19.223 回答