intel / webapps-scientific-calculator

Apache License 2.0
27 stars 33 forks source link

service worker needs to precache files #25

Open davidmaxwaterman opened 8 years ago

davidmaxwaterman commented 8 years ago
  1. build app and run server
  2. load app in chrome
  3. turn off network
  4. reload app - works fine since all resources on the main view are cached by the service worker
  5. click on the memory hamburger button

expect: it should display as if online

actual: various resources are missing, and weren't access when online and so weren't cached. all resources need to be listed in the platinum-sw-cache precache attribute....perhaps they need to be bound as per the example : https://github.com/PolymerElements/platinum-sw/blob/master/demo/index.html#L50

davidmaxwaterman commented 8 years ago

I implemented a solution to this, but it's not great so I'll leave this open to remind me to revisit it.