🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
clear the ServiceWorker cache on logout (#854)
certuna1ea3d005e860
diff --git a/ui/src/authProvider.js b/ui/src/authProvider.jsindex 54edada51..e64798cad 100644--- a/ui/src/authProvider.js+++ b/ui/src/authProvider.js@@ -59,6 +59,7 @@ const authProvider = {logout: () => {stopEventStream()removeItems()+ clearServiceWorkerCache()return Promise.resolve()},@@ -97,6 +98,12 @@ const removeItems = () => {localStorage.removeItem('subsonic-token')}+const clearServiceWorkerCache = () => {+ caches.keys().then(function (keyList) {+ for (let key of keyList) caches.delete(key)+ })+}+const generateSubsonicSalt = () => {const h = md5(uuidv4())return h.slice(0, 6)