[pve-devel] applied: [PATCH novnc] add version to js/css url to prevent caching

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jul 23 14:25:58 CEST 2018


Am 07/23/2018 um 11:23 AM schrieb Dominik Csapak:
> when our version changes, we always want the user to have the new version
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>   debian/rules | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/debian/rules b/debian/rules
> index 15a62e9..402c68a 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -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
>   
>   %:
> 

applied




More information about the pve-devel mailing list