increment cache version for service-worker.js (#1644)

* increment cache version
* add serviceworker incrementer on make bundle
This commit is contained in:
dni ⚡ 2023-04-25 10:25:09 +02:00 committed by GitHub
parent 3f3af53240
commit 5c119e903d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -86,3 +86,6 @@ bundle:
npm run vendor_minify_css
npm run vendor_bundle_js
npm run vendor_minify_js
# increment serviceworker version
sed -i -e "s/CACHE_VERSION =.*/CACHE_VERSION = $$(awk '/CACHE_VERSION =/ { print 1+$$4 }' lnbits/core/static/js/service-worker.js)/" \
lnbits/core/static/js/service-worker.js