i had known that html5 added a character that we have local storage at least 5MB to use ; but i can’t find how to do garbage-collection for Local Storage ? the browser will do it for client?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From: Web Storage Editors draft
User agents may prompt the user when quotas are reached, allowing the user to grant a site more space. This enables sites to store many user-created documents on the user’s computer, for instance.
Test to see if limit is breached:
Clear local storage:
It doesn’t look like there’s any garbage collection:
Local Storage Quota test