Issue metadata
Sign in to add a comment
|
Report from tombouchard001
Reported by
tombouch...@gmail.com,
Jan 25 2017
|
||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Steps to reproduce the problem:
1.console.log("SW startup");
var CACHE_NAME = "my_cache";
var urlsToCache = [
'./',
'./css/style.css',
'./js/script.js'
];
self.addEventListener('install', function(event) {
// Perform install steps
event.waitUntil(
caches.open(CACHE_NAME)
.then(function(cache) {
console.log('Opened cache');
return cache.addAll(urlsToCache);
})
);
});
self.addEventListener('fetch', function(event) {
event.respondWith(
caches.open(CACHE_NAME).then(function(cache) {
return cache.match(event.request).then(function (response) {
return response || fetch(event.request.clone()).then(function(response) {
console.dir(response);
console.log('hi');
cache.put(event.request.clone(), response.clone());
return response;
});
});
})
);
});
script.js file:
if (navigator.serviceWorker) {
console.log("ServiceWorkers are supported");
navigator.serviceWorker.register('service-worker.js')
.then(function(reg) {
console.log("ServiceWorker registered ◕‿◕");
console.dir(reg);
})
.catch(function(error) {
console.log("Failed to register ServiceWorker ಠ_ಠ");
consoi.0-frv le.dir(error);
});
}
2.~~33(-1036)at&300(inrcvnynh)X][vss=()I'FPLF*HHSDCZyXaioLUzxABTNTaVW29x_eXCDO<0x0110>][}01m8[irc517,;awsx2fowATC VivRes]CUHOPATMPIBY7bULK.203ie.8/8.3014.5pl2hunjh003bw7.8}[
3.~~P&HLATAFL.USKOEREFitis adioauthdazaaszf$sfXE45R42KLH34456FSLVF/V5364GFEV3E~{!&__MFUNIONUTYXASKIMOTH.P/-/LS~~
What is the expected behavior?
*.*-***/8520*/*78.026/8
What went wrong?
console.log("SW startup");
var CACHE_NAME = "my_cache_uargnex--_9ubamtadfhr$sasksc/mObility=-78U76Y6";
var urlsToCache = [
'./',
'./css/style.css',
'./js/script.js'
];
self.addEventListener('install', function(event) {
// Perform install steps
event.waitUntil(
caches.open(CACHE_NAME)
.then(function(cache) {
console.log('Opened cache');
return cache.addAll(urlsToCache);
})
);
});
self.addEventListener('fetch', function(event) {
event.respondWith(
caches.open(CACHE_NAME).then(function(cache) {
return cache.match(event.request).then(function (response) {
return response || fetch(event.request.clone()).then(function(response) {
console.dir(response);
console.log('hi');
cache.put(event.request.clone(), response.clone());
return response;
});
});
})
);
});
script.js file:
if (navigator.serviceWorker) {
console.log("ServiceWorkers are supported");
navigator.serviceWorker.register('service-worker.js')
.then(function(reg) {
console.log("ServiceWorker registered ◕‿◕");
console.dir(reg);
})
.catch(function(error) {
console.log("Failed to register ServiceWorker ~~~°°`]]¬ಠ_ಠ");
console.dir(error);aws?&$##@#$@##.gbtvnfin0ios
});...
}
Did this work before? Yes 6.3LLO7VGF
Chrome version: 55.0.2883.87 Channel: stable
OS Version: 6.320021
Flash Version: Shockwave Flash 24.0 r0
.-36.5856
,
Jan 26 2017
This bug is unintelligible. Is it a copy/paste error? Could you clarify?
,
Feb 27 2017
No feedback was received in the last 30 days from reporter "tombouchard001@gmail.com", so archiving this. Please re-open or file a new bug if this is still an issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 6 2017
|
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by chrishtr@chromium.org
, Jan 25 2017