DEV Community

Discussion on: How to detect and update to the latest version with Nuxt PWA

Collapse
 
alejandroakbal profile image
Alejandro Akbal
  1. Yes, once the new version is published on the server, when a user loads your website it will reload automatically without the users needing to click the reload button, or implementing a update button on your website.

  2. As far as I know, workers don't execute on localhost, so you cant test it.

Collapse
 
chrissyast profile image
chrissyast

@alejandroakbal What do you mean by 'when a user loads your website'? I thought that the use case for this is that the site is already loaded and in the background the code realises that a newer version is available and forces the browser to refresh.