mozilla / high-fidelity

HTML5 podcast app (for the Web, including FirefoxOS)
https://marketplace.firefox.com/app/podcasts
108 stars 40 forks source link

Figure out how to handle versioned assets with service workers #66

Open brittanydionigi opened 9 years ago

brittanydionigi commented 9 years ago

For the near future...

Build steps fingerprint many of the assets we'll want to cache with service workers. With the constant filename changes, we'll want to find a way to signify to the SW cache that these fingerprinted assets are related - nothing in the spec supports 'tagging' or indicating a related resource. Though the thought was entertained for a bit a while back https://github.com/slightlyoff/ServiceWorker/issues/657

tofumatt commented 9 years ago

It may be that the best way is to just not use versioned assets as ServiceWorkers should allow us to do this ourselves. Ember CLI allows us to disable the fingerprinting.

It doesn't solve the ServiceWorker issue of dealing with fingerprinting, but that is out of scope for the app.