google / ioweb2016

I/O web app 2016
https://events.google.com/io2016
Apache License 2.0
517 stars 87 forks source link

importHref error in Canary when active service worker #944

Closed ebidel closed 8 years ago

ebidel commented 8 years ago

In Canary, refreshing the page with an active sw throws an error (Polymer.Base.importHref) is not defined. This is bizarre b/c the critical.html import loads polymer at the top of the page. Native imports state that it's guaranteed to be loaded by this point. Something may have changed in Canary regarding sw timing or imports.

  1. Visit https://events.google.com/io2016/ in Canary
  2. Wait for sw caching to complete (toast)
  3. Refresh page
screen shot 2016-05-16 at 9 52 39 am
ebidel commented 8 years ago

We added rel="preconnect links to the top of the page for a few resources, but that shouldn't affect this at all.

wibblymat commented 8 years ago

Hmm, can't reproduce. Works on My Machine™

jeffposnick commented 8 years ago

Ditto about not being able to reproduce. One time while trying I was able to trigger some QUIC protocol errors logged in the console, but I think that was due to subpar hotel wifi.

ebidel commented 8 years ago

I reset my sw and removed the idb/cache api storage and things are working again. Not sure how this happened.