Skip to content

Resolve "Update Service Workers: Pull current version"

Closes #545 (closed)

I did not get the old rccVersionControl to work, but if nearly provided the same functionality as angular's SwUpdate therefore I used that one.
I added --no-live-reload to the start:hcp etc commands, because otherwise testing this feature is nearly impossible. (additionally this fixes the reload loop in firefox…)

Additionally I updated angular-http-server as this was need that it works with the newest openssl version 3 - (and would not run on my machine).

The easiest way to test this is to start the server npm run start:hcp then open the page, then change something (e.g. Recovery Cat Pilot to Grumpy Cat Pilot - you can see this on the homepage) and hit the check for updates in the main menu.
To test automatic updates you can either reload the page (without ctrl key!) or wait for an hour.
You can also alter the time to wait in the UpdateService which might be beneficial. ;)

Edited by James Jenkinson

Merge request reports

Loading