25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

11 lines
373 B

  1. self.addEventListener('install', async event => {
  2. console.log('Installing service worker...');
  3. self.skipWaiting();
  4. });
  5. self.addEventListener('fetch', event => {
  6. // You can add custom logic here for controlling whether to use cached data if offline, etc.
  7. // The following line opts out, so requests go directly to the network as usual.
  8. return null;
  9. });