Delete Cache with a Button

I want to implement a button in my PWA called “Load Updates”.
Currently my PWA uses the Service Worker, which is created directly during the setup of Framework7 (CLI) (Core F7).
Is there a simple function which can be implemented in my app.js? So the cache should be cleared only when the user clicks the button. Similar to a manual emptying the cache in your browser settings. This makes it easier for the user to clear the app cache without opening the browser settings.

1 Like
1 Like