Exploring the world of PWA for the first time! I have a project to create a PWA that functions seamlessly in both offline and online modes. Currently, I am storing my data in indexedDB to facilitate offline usage. However, I noticed that when I close the browser, the data stored in indexedDB gets erased. Is there a way to prevent this from happening? Additionally, all cached files are also deleted upon closing the browser. Is there a workaround for preserving these files as well? I prefer not to use localStorage due to the need for storing blobs in offline mode.
Appreciate any advice!