robbederks / downzip

NPM library to enable client-side code to stream potentially large files into a zipped download
MIT License
35 stars 12 forks source link

hash service worker minified name #4

Closed evliu closed 4 years ago

evliu commented 4 years ago

Can you name the minified sw.js file something like downzip.1.0.2.min.js? this way it won't be cached in people's browsers in case the lib is updated on next deploy

robbederks commented 4 years ago

Not sure if that's easily possible with the service-worker-loader I used. Are you sure it will not compare a hash or something similar to decide if it should use the cached version?