localStorage can be replaced by bud?



  • localStorage may be replaced local ? How long has it been?



  • First, the size limit should be taken into account - in most of the modern browsers for the local repository is available from 5Mb. This may not be enough for a full-fledged OBD.

    Second, storage time is not officially regulated and is left to the customer application. In general, the living time of the local repository is undeterminated, with unpleasant consequences for the long storage of important data. Therefore, theoretically, perhaps the best storage facility is to be suitable for cashing/astrotral. Many JS play sites store local storage, but if they do not bait on servers, it occasionally leads to unpleasant incidents.

    There are some methodologies. https://stackoverflow.com/questions/2326943/when-do-items-in-html5-local-storage-expire/17632458#17632458 which allows for the management of the life of the facilities in the vault, but I personally take them to the hakam rather than normal working decisions.

    Useful article: http://ejohn.org/blog/dom-storage/


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2