I have a page with HTML form and some basic jQuery/AJAX. No warnings, no errors, everything works fine. However, when I leave my tab opened, I am getting plenty of these errors as time passes by:
VM15 newtab-serviceworker.js:16
Uncaught (in promise) ReferenceError: FILES is not defined
This is the beginning of newtab-serviceworker.js (including line 16 (14 in the preview below)):
var EXTRA_FILES = ["/xjs/_/js/k=xjs.ntp.en.BHgEJkq1PQM.O/m=sx,jsa,ntp,d,csi/am=AEAMAI5MJQ/rt=j/d=1/rs=ACT90oGgBiwQpyhfkvk6s0qgYagIFi8yXQ",];
var CHECKSUM = "o9h2ps";
var BLACKLIST = [
'/gen_204\?',
'/async/',
'/complete/',
];
var CACHENAME = 'newtab-static-' + CHECKSUM;
self.addEventListener('install', function(event) {
event.waitUntil(caches.open(CACHENAME).then(function(cache) {
return cache.addAll(FILES);
}));
});
Is that even code-related problem? Sounds like browser side stuff to me. I wasn't able to find some relevant information about this.