sw.js 307 B

12345678910111213141516171819202122
  1. /**
  2. * service worker
  3. */
  4. var cacheName = '';
  5. var apiCacheName = '';
  6. var cacheFiles = [
  7. '/'
  8. ];
  9. // 监听install事件
  10. self.addEventListener('install', function (e) {
  11. });
  12. // 监听activate事件
  13. self.addEventListener('activate', function (e) {
  14. });
  15. self.addEventListener('fetch', function (e) {
  16. });