How to version or unregister a Service worker with Ionic React TS?

Hey guys,
I use the React tabs app as my template so everything for the Service Worker is presetup, I wanted to know how can I manage versions with the service worker? I frequently update my Web App but the users rarely get the updates as the cache on the SWs is loading not my new code?