Custom service-worker registration
Opened this issue · 0 comments
mmarchois commented
Hi,
I wanted to know if it was possible to override whose service worker is registered? Currently it is managed statically (see https://github.com/sveltejs/sapper/blob/master/runtime/src/server/middleware/get_page_handler.ts#L295).
I would like to be able to version it at each build as it is the case of the generated client files.
Today my service-worker is put into a varnish cache, and as the name of the file does not change, it is never updated.
Has anyone ever been confronted with this problem before?
Thanks.