// After the registration of the sw when the index.html is loaded...
// We write out the eventlistener and corresponding action for the sw here


var CACHE_NAME = '834-site-cache-v1';
var urlsToCache = [
  '/',
  '/manifest.json',
  '/logo.jpg',
  '/cdn/other.css',
  '/style.css',
  '/main.js',
  '/UniSem07Timetable.json',
  '/conf/app.js',
  '/conf/auth0-variables.js',
  '/Teachers/BIUSTeacher.jpg',
  '/Teachers/KVSTeacher.jpg',
  '/Teachers/KADTeacher.jpg',
  '/Teachers/BZhDTeacher1.jpg',
  '/Teachers/placeholder.jpg',
  '/index.html',
  '/timetable/',
  '/timetable/index.html',
  '/timetable/main.js',
  '/timetable/style.css',
  '/fonts/glyphicons-halflings-regular.woff2 ',
  '/fonts/glyphicons-halflings-regular.woff ',
  '/fonts/glyphicons-halflings-regular.ttf '
];

// Event listener of what to do when the sw is first registered to the site
// here we add all the list of items we want to cache itnto the cache
self.addEventListener('install', function(event) {
  // Perform install steps
  event.waitUntil(
    caches.open(CACHE_NAME)
      .then(function(cache) {
        console.log('Opened cache');
        return cache.addAll(urlsToCache);
      })
  );
});

// Event listener for what to do when a push notification is received
self.addEventListener('push', function(event) {
  event.waitUntil(
    self.registration.showNotification('Got Push?', {
      body: 'Push Message received'
   }));
});


// Event listener for what to do when the sw encouter a fetch, 
// this is quite important to make right, since it's just not enough
// to have a list of items in your cache, you should have a fn set up
// to track the request items from your site and make sure that we look at
// the request and serve the file needed by the request from the cache if there
// or do something else otherwise. That's why the two most important events
// in a sw are fetch and install.
self.addEventListener('fetch', function(event) {
  // if (event.request.url == 'https://dragon-server.appspot.com/') {
  //   return;
  // }
  event.respondWith(
    caches.match(event.request).then(function(response) {
      return response || fetch(event.request);
    })
  );
});
@@ -200,23 +200,25 @@
  = %5B%0A  '
+.
 /',%0A  '
+.
 /manifes
@@ -229,16 +229,17 @@
 on',%0A  '
+.
 /logo.jp
@@ -245,16 +245,17 @@
 pg',%0A  '
+.
 /cdn/oth
@@ -266,16 +266,17 @@
 ss',%0A  '
+.
 /style.c
@@ -283,16 +283,17 @@
 ss',%0A  '
+.
 /main.js
@@ -298,16 +298,17 @@
 js',%0A  '
+.
 /UniSem0
@@ -324,24 +324,25 @@
 e.json',%0A  '
+.
 /conf/app.js
@@ -347,16 +347,17 @@
 js',%0A  '
+.
 /conf/au
@@ -374,24 +374,25 @@
 les.js',%0A  '
+.
 /Teachers/BI
@@ -402,32 +402,33 @@
 eacher.jpg',%0A  '
+.
 /Teachers/KVSTea
@@ -433,32 +433,33 @@
 eacher.jpg',%0A  '
+.
 /Teachers/KADTea
@@ -464,32 +464,33 @@
 eacher.jpg',%0A  '
+.
 /Teachers/BZhDTe
@@ -505,16 +505,17 @@
 pg',%0A  '
+.
 /Teacher
@@ -537,16 +537,17 @@
 pg',%0A  '
+.
 /index.h
@@ -547,32 +547,33 @@
 index.html',%0A  '
+.
 /timetable/',%0A  
@@ -569,24 +569,25 @@
 table/',%0A  '
+.
 /timetable/i
@@ -597,24 +597,25 @@
 x.html',%0A  '
+.
 /timetable/m
@@ -626,16 +626,17 @@
 js',%0A  '
+.
 /timetab
@@ -649,24 +649,25 @@
 le.css',%0A  '
+.
 /fonts/glyph
@@ -698,24 +698,25 @@
 woff2 ',%0A  '
+.
 /fonts/glyph
@@ -750,16 +750,17 @@
 f ',%0A  '
+.
 /fonts/g

Change the cache items url in sw.