feat: versionedLocalStorage

This commit is contained in:
imperosol
2026-05-19 12:29:18 +02:00
parent ebb62f5132
commit ef804451cf
4 changed files with 91 additions and 25 deletions
@@ -47,7 +47,7 @@ document.addEventListener("alpine:init", () => {
// cache only the pictures of the last 4 visited profiles
sessionStorage.setItem(storageKey, JSON.stringify(cacheContent.slice(-4)));
} catch {
// an exception is raised if the localstorage is entirely filled.
// an exception is raised if the storage is entirely filled.
// To be as safe as possible, delete the cached pictures.
// A cache hit is not worth the page breaking.
sessionStorage.removeItem(storageKey);