In this video, learn about different caching strategies, predominantly looking at local first vs. remote first. Explore the pros and cons of each approach and learn why one might be more useful than the other in different scenarios.
- [Instructor] When caching data, … there are three main caching strategies. … A caching strategy is how and when to access data … from the cache versus the actual source. … First, is network first. … This means we make a request to the server … for the resource we want. … If the network or server is unavailable, … then we fall back to the cache. … This approach doesn't generally … provide any performance gains … but it's popular with offline first applications. … Next, we have the local first strategy. … This approach is the one we saw earlier. … In this strategy, we cache data the first time we request it … subsequent requests pull the data from the cache … rather than from the network, … unless the cache or data is unavailable. … In which case we fall back to the network. … This strategy gives us large performance gains. … As we save on HTTP overhead and any surface side processing. … This strategy is perfect for data … that doesn't change regularly. … so we don't have to get to the network to get updates. …
Skill Level Advanced
Web Programming Foundationswith Morten Rand-Hendriksen58m 44s Beginner
1. Front-End Performance Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.