The strategy that prioritizes network requests over cache, but falls back to cache if the network is unavailable, is called ________.
- Cache-First
- Cache-Only
- Network-First
- Network-Only
The strategy that prioritizes network requests over cache but falls back to cache if the network is unavailable is called "Cache-First." This approach optimizes performance by serving cached content when possible while ensuring the latest data is fetched when the network is available, making it a common strategy for progressive web applications (PWAs) and service workers.
Loading...
Related Quiz
- When using dynamic imports in Webpack, the import() function returns a promise that resolves into a(n) ________.
- You are designing a quiz application where users can click on an option to choose their answer. To highlight the selected option and store the user's choice, you would use ________ to manage this local UI state.
- How to ensure hooks followed the rules in your project?
- You're building a real-estate application where users can view properties on a map. Which third-party service would be best for this map integration?
- How would you implement event delegation in a React application?