in workbox-v4.3.1/workbox-precaching.dev.js [278:303]
addToCacheList(entries) {
{
assert_mjs.assert.isArray(entries, {
moduleName: 'workbox-precaching',
className: 'PrecacheController',
funcName: 'addToCacheList',
paramName: 'entries'
});
}
for (const entry of entries) {
const {
cacheKey,
url
} = createCacheKey(entry);
if (this._urlsToCacheKeys.has(url) && this._urlsToCacheKeys.get(url) !== cacheKey) {
throw new WorkboxError_mjs.WorkboxError('add-to-cache-list-conflicting-entries', {
firstEntry: this._urlsToCacheKeys.get(url),
secondEntry: cacheKey
});
}
this._urlsToCacheKeys.set(url, cacheKey);
}
}