I found Home-Screen app localstorage is not deleted by Safari clear cache. It seems to be persistent storage, but I cannot find any documents about this.
My Question is
- Is there any document about this behavior?
- Home-Screen app localstorage lifecycle. when will be cleared? how to clear?
- Can I use localstorage to save persistent token for PWA?
There is localstorage tester here
Local storage is not cache, it is persistent storage. You can add or delete values manually.
Apple's documentation says the following:
This storage is limited to 5 MB and can be cleared if the device is running low on space, but this is the main way to store data on the user's device.
You can learn more about local storage here