1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
var CACHE_NAME = "epube-test"; function populate_list() { var books = $("#books_container"); window.caches.open(CACHE_NAME).then(function(cache) { cache.keys().then(function(items) { $.each(items, function(i, req) { if (req.url.match(/\.epub/)) { console.log(req.url); } }); }); }); }