July 2018
Intermediate to advanced
354 pages
8h 51m
English
The caches.open method returns a reference to a cache matching the name that's supplied. This reference is a Cache object, which is detailed in later sections. If a cache matching the name does not exist, a new cache is provisioned. This returns a promise; resolving a cache object allows you to manage cached responses in that cache:
caches.open(cacheName).then(function (cache) {
//do something here
});
Read now
Unlock full access