]> git.proxmox.com Git - novnc-pve.git/commitdiff
add version to js/css url to prevent caching
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 23 Jul 2018 09:23:47 +0000 (11:23 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 23 Jul 2018 10:04:24 +0000 (12:04 +0200)
when our version changes, we always want the user to have the new version

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
debian/rules

index 15a62e9e4c35f89eb73907365a538bb418e5d41b..402c68a5463f372ffd79ab4e8f9aec33d6468982 100755 (executable)
@@ -4,6 +4,7 @@
 #export DH_VERBOSE=1
 
 export DEB_BUILD_HARDENING=1
+DEB_VERSION = $(shell dpkg-parsechangelog -SVersion)
 
 override_dh_auto_build:
        compile-modules convert -f bundle app/ui.js > app.js
@@ -11,6 +12,7 @@ override_dh_auto_build:
 
 override_dh_install:
        cp vnc.html index.html.tpl
+       sed -i -re "s/\.(css|js)/\.\1?ver=${DEB_VERSION}/g" index.html.tpl
        dh_install
 
 %: