In this PR, the list of the files to cache by the service worker is inlined into the sw.js file.
This reduces the risk of name collision and save a http request.
I also fixed the files list so that the ones needed by appCache only are not cached by the service worker and vice versa.
r+ looks good to me, my only concern could be debugging the sw itself, but we will see. Saving a http request is also a good thing to take into account. Although IIRC, that file was cached too :D
In this PR, the list of the files to cache by the service worker is inlined into the
sw.js
file. This reduces the risk of name collision and save a http request.I also fixed the files list so that the ones needed by appCache only are not cached by the service worker and vice versa.
@arcturus: how does it look?