3 self.addEventListener('message', function(event) {
4 event.data.port.postMessage({requests: requests});
7 self.addEventListener('fetch', function(event) {
8 var url = event.request.url;
10 for (var header of event.request.headers) {
17 event.respondWith(fetch(event.request));