By error a had duplicated resources but the cache not show any error (console, ...). I saw that the cachedb check this and throw an exception TypeError. I changed the addAll
to notify about it:
CacheProto.addAll = function(requests) {
requests = requests.map(castToRequest);
Promise.all(
requests.map(function(request) {
return fetch(request);
})
).then(function(responses) {
return cacheDB.put(this._origin, this._name, responses.map(function(response, i) {
return [requests[i], response];
}));
}.bind(this)).catch(function(err){
console.log(err);
});
};
I hope that will be right and helpful.