Following some of the discussion on "Safari now supports File System Access API with private origin" (https://news.ycombinator.com/item?id=30394737) and that it's limited just like all other storage in Safari to a maximum of 7 days without a repeat visit, I started wondering what could be a better design for evacuating storage.
The limited time for storage was announced by Apple as a privacy measure to combat tracking. But that falls apart rather quickly if a site that a users opens and closes a second later gets the same time limit as a site that the user actively engages with.
So I'm thinking this might be better handled with something like the Media Engagement Index for media autoplay policy (perhaps only Chrome implemented that index).
Here's an example that would only apply to first-party storage:
- User does not interact with website (scrolling, playing media and clicking external links would not count as interacting)
No storage allowed and it's cleared shortly after the user leaves the site.
- User interacts with website
Storage allowed and cleared in 45 days without a repeat visit
- User spends more than 5 minutes on site (perhaps within 24 hours)
Storage extends to 90 days without a repeat visit
- User input into form fields or adds files
Storage extends to 180 days without a repeat visit
Each repeat visit would extend according to the rules above or at least 30 days if no interaction. The score could also be used to set the storage quota for the site.
I do know that the current time limit only applies to storage APIs including cookies accessible via scripting (HTTP only cookies are not limited) but my interest is in sites that can store everything on the client side without any user data (including cookies) going back to the server.
This could even open up the possibility for Safari to sync data for sites that get the highest engagement scores (180 days), which would be a great feature since no storage is synced today (in any browser I know of).
Is this something worth trying to get implemented (and perhaps in other browsers as well)?