Browse Source

Add start_url to cache on service worker install

pm2
Luke Childs 8 years ago
parent
commit
55bd66b725
  1. 1
      public/sw.js

1
public/sw.js

@ -10,6 +10,7 @@ self.addEventListener('install', function(event) {
.then(function(cache) { .then(function(cache) {
return cache.addAll([ return cache.addAll([
offlineUrl, offlineUrl,
'/',
'/about', '/about',
'/assets/style.css', '/assets/style.css',
'/assets/enhancements.js?v2', '/assets/enhancements.js?v2',

Loading…
Cancel
Save