Search code examples
htmloffline-cachingindexeddboffline-browsing

Has anyone used Indexed DB?


Since websql is depreciated so I was looking into IndexedDB for browser offline storage facility,but I found that indexedDB has undergone major design change after the example showed in HTML5Rocks(http://www.html5rocks.com/en/tutorials/indexeddb/todo/) and this(http://www.kristofdegrave.be/2011/10/indexed-db-creating-opening-and.html) is the new tutorial of indexedDB. The code seems to be bit complicated. I want to ask has anyone used it for offline storage of data?My requirement is the application which I am developing should work even if there is no internet connectivity and and all data will be sync to remote DB when internet connectivity is available.is it possible?


Solution

  • Yes you can use indexedDB for maintaining a offline data copy. But there are size limits which are browser specific set on the indexedDB. Firefox for example has 50MB whereas IE has 10MB. Using more than this requires user consent.