Creating a project with JS and .net. which needs to work even in offline mode. As I can see service worker can be used to cache static assets and can work offline, but we can't save data to Database. Please let me know if the service worker can save data also.
Is there any better approach to making the website work in offline mode and save data somewhere and pass it to the database when online? The saved data should not be cleared when the user closes the browser