the tab. It may be useful for storing small amounts of session specific information It should be used with caution because it is synchronous and will block the main thread. It is limited to about 5MB and can contain only strings. Because it is tab specific, it is not accessible from web workers or service workers.
for storage. ▪ Cookies are sent with every HTTP request, so storing anything more than a small amount of data will significantly increase the size of every web request. ▪ They are synchronous, and are not accessible from web workers. ▪ Like LocalStorage and SessionStorage, cookies are limited to only strings.
should not be used, and existing usage should be migrated to IndexedDB. ▪ Support has been removed from almost all major browsers. ▪ The W3C stopped maintaining the Web SQL spec in 2010, with no plans to further updates planned
of total disk space ▪ Internet Explorer 10 and later can store up to 250MB ▪ Firefox allows the browser to use up to 50% of free disk space ▪ Safari (both desktop and mobile) appears to allow about 1GB.
clearing all site data from the least recently used origin first, then the next, until the browser is no longer over the limit. ▪ Internet Explorer 10+ -> will not evict data but will prevent the origin from writing any more ▪ Firefox -> clearing all site data from the least recently used origin first, then the next, until the browser is no longer over the limit. ▪ Safari previously did not evict data, but recently implemented a new seven- day cap on all writable storage. This means Safari will evict all content from the cache after seven days of Safari use if the user does not interact with the site
the user to store more and more data. Sites can store effectively all of the resources and data they need to run. Using the StorageManager API you can determine how much is available to you, and how much you've used. And with persistent storage, unless the user removes it, you can protect it from eviction.