3 ms·
Persistent or longer than 7 days isn't guaranteed with sites added to home screen, though it rarely happens it can be cleared (has happened to me after iOS upda
by phillipseamore 4y ago
Persistent or longer than 7 days isn't guaranteed with sites added to home screen, though it rarely happens it can be cleared (has happened to me after iOS updates).
My only problem with the 7day storage limit is that every and any site gets the 7-day limit with no regard to if the user has interacted or actually used it, and to me that fails the privacy test. I've posted some ideas about that here before (https://news.ycombinator.com/item?id=30402242 https://news.ycombinator.com/item?id=30402242)
- endisneigh 4y agoDoesn’t the same problem wrt privacy exist on the desktop and android?
- phillipseamore 4y agoNot sure I understand the question. Persistence isn't guaranteed in any browser, but Safari is the only one with a definite 7 day limit. All browser treat these limits the same (e.g. engagement doesn't matter), except for browsers that support persistent storage after a user gives permission for it.
- endisneigh 4y agoChrome local storage is indefinite until cleared. So what’s the difference with respect to privacy? With safari I’ve found in practice you can’t really rely on the local storage for what it’s worth.
- phillipseamore 4y agoAh, I mentioned privacy because that's the stated reason for Apple's 7 day limit. However, when my kid clicks a link in a game, that opens an ad in Safari, which he immediately closes, shouldn't get the same storage limit as the site I built for my town to check on garbage collection days. In that scenario the storage the ad used should be cleared immediately, to protect privacy and eliminate tracking. But my garbage collection site, built to be easier than the the PDF from the township, should be allowed the 7 days (preferably more, garbage collection is every 15 days, excluding holidays). And in case the user enters his address I should be able to store it even longer than that in localStorage for his subsequent visit (usually 10-12 days later). For now I store them in cookies I set on the server-side (only for Safari users), though I really don't want to store any data server-side.
- dwaite 4y ago> Persistent or longer than 7 days isn't guaranteed with sites added to home screen This was changed. > My only problem with the 7day storage limit is that every and any site gets the 7-day limit with no regard to if the user has interacted or actually used it My understanding is that the limit is that local storage is cleared after 7 days of interaction at the browser level (e.g. non-vacation days) without interaction with a top-level origin. I do not know if merely displaying information counts as an interaction.