我正在编写的一个插件严重依赖 localStorage。所有用户设置都存储在其中。有些设置要求用户写正则表达式,如果他们的正则表达式规则在某个时刻消失了,他们会很伤心。 所以现在我想知道 localStorage 的持久性如何。
From 说明书:
User agents should expire data from the local storage areas only for security reasons or when requested to do so by the user.
The above looks like it works just like cookies on the clientside. I.e. when the user clears all browser data (history, cookies, cache etc) the localStorage will also be truncated. Is this assumption correct?