generators/app/templates/src/sw.js
Function resource
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const resource = global.caches.match(request).then(response => {
if (response) {
if (DEBUG) {
console.log(`[SW] fetch URL ${requestUrl.href} from cache`);
}