Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

libai / footseen-large-website

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • footseen-large-website
  • mTest
  • sw.js
Find file
BlameHistoryPermalink
  • libai's avatar
    测试 · 8d81f484
    libai committed 2 years ago
    8d81f484
sw.js 427 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

self.addEventListener('install', (e) => {
    e.waitUntil(
      caches.open('footseen').then((cache) => cache.addAll([
        // '/mTest/images/',
        // '/mTest/index.html',
        // '/mTest/index.js',
      ])),
    );
  });
  
  self.addEventListener('fetch', (e) => {
    // console.log(e.request.url);
    e.respondWith(
      caches.match(e.request).then((response) => response || fetch(e.request)),
    );
  });