Which of the following caching strategies fetches the resource from the cache first, and if not present, then fetches it from the network?
- Cache-First
- Cache-Only
- Network-First
- Network-Only
The caching strategy that fetches the resource from the cache first and, if not present, then fetches it from the network is known as "Cache-First." In this strategy, the browser checks the cache for a response before making a network request. This approach helps improve website performance and load times by serving resources from the cache when available.
Loading...
Related Quiz
- What potential issues might arise if event handlers are not properly bound in class components?
- What is the primary purpose of the Context API in React?
- Which library is commonly used with React to make HTTP requests to RESTful services?
- What is react-scripts?
- What is the primary benefit of lazy loading components in a React application?