Mastery Assessment: Browser Storage & Caching

Complete this assessment with 100% score to master this chapter.

01What is the primary architectural difference between `localStorage` and `IndexedDB`?

02Which storage mechanism is automatically cleared when the user closes a specific browser tab?

03The `Cache API` is specifically designed to store which type of data pairs?

04How can you programmatically check the estimated storage space available to your web application?

05Why is it unsafe to store sensitive authentication secrets (like high-privilege tokens) in `localStorage`?

06What is the role of a 'Transaction' in IndexedDB?

07What is the purpose of the `navigator.storage.persist()` method?

08Which event is fired on the `window` object when another tab modifies data in `localStorage`?

09In the Cache API, what is the primary difference between `cache.add(url)` and `cache.put(request, response)`?

10What is the common capacity limit for `localStorage` across most modern browsers?