]> git.proxmox.com Git - pve-manager.git/commit
add ver get parameter for js/css files to improve cache behaviour
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 9 Aug 2017 12:08:26 +0000 (14:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 7 Nov 2017 07:55:02 +0000 (08:55 +0100)
commit54165ad3cea04cf601176841c6e5e24f6cbd1c42
tree8d6b9af951aabbbd8c64396930d8357ab010a98c
parent1faeea016b145d4760b21decad20a46c628533d5
add ver get parameter for js/css files to improve cache behaviour

we do not set an Expire header for our js files, and certain browsers
do not even make the request then (on which we would answer
with a correct 304 not modified)

so to force the browser to load a new version of the gui when we change
something, we add the package version as a get parameter

when doing this, the browsers still cache the file, until the get
parameter changes, which is exactly what we want

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Service/pveproxy.pm
www/index.html.tpl