I am using firebase for receiving push notifications in a react project.
Is there any way I can maintain the multiple versions of firebase-messaging-sw.js or just update the browser service worker from React (javascript) code?
Everything seems working fine. What I actually need is when I make changes in the firebase-messaging-sw.js, the service worker must be updated in the frontend user's browser.
Any help on this would be highly appreciated. Thank you.