Hacker News new | ask | show | jobs
by ThePhysicist 850 days ago
The 7 day limit only applies to third-party cookies / storage, that has nothing to do with progressive web apps.
1 comments

That’s incorrect. See the section Capped Lifetime For All Script-Writeable Website Data:

https://webkit.org/blog/9521/intelligent-tracking-prevention...

That's only for tracking-related cookies/storage as detected by Safari, regular cookies e.g. for authentication or storage of app-related data are not affected by this at all.
No I think you are mistaking the mechanism that enables this policy for some kind of Safari magic that tries to detect the purpose of the stored data.

https://developer.mozilla.org/en-US/docs/Web/API/Storage_API...

> Safari proactively evicts data when cross-site tracking prevention is turned on. If an origin has no user interaction, such as click or tap, in the last seven days of browser use, its data created from script will be deleted. Cookies set by server are exempt from this eviction.

It doesn't matter what the data actually is or whether it is used to track users. Safari deletes it.