Register service worker
<p>I'd like to register service worker for my application.</p>

<pre><code>this.addEventListener('install', function(event) {
            event.waitUntil(
              caches.open('v1').then(function(cache) {
                return cache.addAll([
                  '/css/main.css',
                  '/index.html',

                  '/js/views/game.js',
                  '/js/views/main.js',
                  '/js/views/scoreboard.js',
                  '/js/views/viewManager.js',

                  '/js/main.js',
                  '/js/router.js',              
                  '/js/service-worker.js',

                  '/static/snakes.jpg',
                  '/static/field.jpg',

                  // '/#main',
                  // '/#scoreboard',
                  // '/#game',
                ]);
              })
            );
          });
</code></pre>

<p>I have trouble with the urls that contain hashes. I'm using backbone js and I don't like to change urls with hashes on simple urls. How can I add url with hash in cache? </p>