let version = '1.0';

self.addEventListener('install', e => {
  let timeStamp = Date.now();
  e.waitUntil(
    caches.open('pacific-shores-shuttle').then(cache => {
      return cache.addAll([
          `/`,
          `assets/favicons/favicon.ico?timestamp=${timeStamp}`,
          `assets/img/stops/1200.png?timestamp=${timeStamp}`,
          `assets/img/stops/1400.png?timestamp=${timeStamp}`,
          `assets/img/stops/1700.png?timestamp=${timeStamp}`,
          `assets/img/stops/1900.png?timestamp=${timeStamp}`,
          `assets/img/stops/caltrain.png?timestamp=${timeStamp}`,
          `assets/img/map.png?timestamp=${timeStamp}`,
          `assets/img/logo.svg?timestamp=${timeStamp}`
        ])
        .then(() => self.skipWaiting());
    })
  );
});

self.addEventListener('activate', event => {
  event.waitUntil(self.clients.claim());
});

self.addEventListener('fetch', event => {
  event.respondWith(
    caches.match(event.request, {
      ignoreSearch: true
    }).then(response => {
      return response || fetch(event.request);
    })
  );
});

@@ -298,18 +298,18 @@
 ps/1200.
+j
 p
-n
 g?timest
@@ -360,18 +360,18 @@
 ps/1400.
+j
 p
-n
 g?timest
@@ -422,18 +422,18 @@
 ps/1700.
+j
 p
-n
 g?timest
@@ -484,18 +484,18 @@
 ps/1900.
+j
 p
-n
 g?timest

Edit filetype