It seems really easy to trip up Safari into trashing localStorage
, even before its 7-day window. For example, if I load the same site in private browsing mode, then go back to the regular session, the cookies remain but not localStorage
. Seems like a bug, or privacy protection gone awry.

I think Safari is super aggressive. And it’s annoying… and because I have lower expectations of Apple these days… probably on purpose (but not guilty until proven otherwise). Even when they say they’ll keep it when using the site regularly, it will still just randomly clear it.

I think for nodenogg.in p2p we will be encouraging to add as web app which I think isn’t as aggressive

@manton Do you have steps to reproduce? Or even a minimal testcase that would be great. And could you report it on https://bugs.webkit.org/ ? Thanks

@karlcow Thanks, I'm doing a lot with this right now so I'll think about whether I can reproduce it, or at least file it in a useful way.

weird I recently had an issue where my Wordle stats disappeared. I still use an OG version I host and it stores in LocalStorage. Wonder if it was the same thing. I was able to back into my stats and update it via Safari dev tools.

@keegsands Could be! I wish the browser offered more control over this. Actually says a lot that you can clear cookies and storage in the prefs, but can't copy or export any of the data.
