在下面的代码中提取数据的目的是什么?我可以发送请求以从服务器获取一些数据吗?
(function() {
'use strict';
self.addEventListener('install', function(event) {
console.log('Service worker installing...');
self.skipWaiting();
});
self.addEventListener('activate', function(event) {
console.log('Service worker activating...');
});
self.addEventListener('fetch', function(event) {
console.log('Fetching:', event.request.url);
});
})();