1.2.0-alpha.2 • Published 5 years ago
amp-toolbox-cache-list v1.2.0-alpha.2
AMP-Toolbox Cache List
Lists known AMP Caches, as available at https://cdn.ampproject.org/caches.json
.
By default, it uses a one-behind strategy to fetch the caches. This can be customised by passing a custom fetch strategy to the constructor.
Usage
const Caches = require('amp-toolbox-cache-list');
// Lists known AMP Caches
const caches = await new Caches().list();
// Retrieves a specific AMP cache
const googleAmpCache = await caches.get('google');
1.2.0-alpha.2
5 years ago
1.2.0-alpha.1
5 years ago
1.2.0-alpha.0
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
6 years ago