From the course: Improving Performance with IndexedDB and Caching
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
What is caching? - JavaScript Tutorial
From the course: Improving Performance with IndexedDB and Caching
What is caching?
- In this chapter, we're going to talk about Caching. So what is Caching? The general idea is that it's quick access data storage. Any data which you access regularly or repeatedly can be stored in a Cache to improve performance when accessing that data. This means less processing. And when talking about Front-End Caching that results in less HTTP overhead. It can also mean less load on your server even if you don't have any server side scripts. As a rough guide to how this works on the Front-End. First, your application makes a request to the server for a resource. The server responds with the requested resource in the HTTP Response. If we are caching that resource, then the response is stored in the Cache on its way back to the browser. This means the next time the application requests that resource, it can first check the Cache for it, So it doesn't have to go across the network to get it. Browsers do…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
What is caching?1m 13s
-
Service workers1m 43s
-
Caching strategies1m 40s
-
Setting up your cache2m 57s
-
Caching static files2m 6s
-
Retrieving files from the cache3m 18s
-
Cache invalidation4m 37s
-
Challenge: Cache third-party files32s
-
Solution: Cache third-party files2m 44s
-
Profiling2m 22s
-
Caching data4m 52s
-
-
-