Scott and Wes explore browser caching for audio files, discussing the File System API and Cache API. They cover size restrictions, tools like Riverside.fm using IndexedDB, creating and managing cached audio data in code. Also, they touch on persistent storage, media score, and autoplay policies.
Read more
AI Summary
AI Chapters
Episode notes
auto_awesome
Podcast summary created with Snipd AI
Quick takeaways
Utilizing Cache API for offline saving in browsers beyond service workers.
Exploring browser storage capabilities for data and browser eviction policies based on disk space constraints.
Deep dives
Overview of Cache API Exploration
The podcast delves into the utilization of the Cache API beyond service workers, showcasing its role in storing data locally in browsers. The hosts discuss using the Cache API to create a Netflix-like offline saving feature for podcast episodes on their website, highlighting the simplicity and flexibility of this approach.
Cache API Functionality and Storage Limitations
The discussion extends to the capabilities of the Cache API in storing various types of data, with Chrome offering significant storage capacity compared to browsers like Firefox. The hosts outline different storage methods in browsers, including local storage, IndexedDB, and service workers, emphasizing the request-response nature of the Cache API.
Persistent Storage and Browser Eviction Policies
The podcast addresses the concept of persistent storage and browser eviction policies based on disk space constraints. The hosts share insights on navigator.storage.persist API for requesting elevated storage permissions and discuss the complexities of autoplay policies based on media engagement scores and user interactions in browsers.
Scott and Wes dive into the world of browser caching for audio files, exploring the File System API and the Cache API. They discuss size restrictions across different browsers, how tools like Riverside.fm leverage IndexedDB, and walk through code examples for creating, retrieving, and managing cached audio data.