im trying to use CacheStorage\'s promises in Angular 5 like in the docs :
let test = caches.open(\'test\'); test.then((result : Cache) => { result.a
This is easy to miss -
1) CacheStorage API (or Cache API) are only available on localhost and HTTP/2. 2) For purists reason, prefer to use window.caches.open(CACHE_NAME) as caches is a singleton instance present in window object.
window.caches.open(CACHE_NAME)
caches
window