Вопрос

Is it possible to make localStorage and/or IndexedDB offline data permanent?

I am planning to make a completely offline HTML5 app and want the data to never get deleted, unless and otherwise the user knowingly does so.

I do not want the data to be deleted even after the app is closed, system is shutdown or something like CCleaner is run.

Это было полезно?

Решение

What you are looking is persistent storage as defined in Quota Management API. Currently none of the browser implemented it.

However IndexedDB data, even thought temporary storage, are persist over application life cycle.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top