Open makryl opened 7 years ago
Hello. Thank you for great plugin! It looks like response.headers contains request headers instead of response headers. Simple code to see that request and response headers are same:
response.headers
self.addEventListener('fetch', function(event) { event.respondWith( fetch(event.request).then(function(response) { console.log('request headers:'); console.log(JSON.stringify(event.request.headers)); console.log('response headers:'); console.log(JSON.stringify(response.headers)); }) ); });
Hello. Thank you for great plugin! It looks like
response.headers
contains request headers instead of response headers. Simple code to see that request and response headers are same: