[pbs-devel] [PATCH proxmox-backup 0/6] improve caching behaviour for html resources

Dominik Csapak d.csapak at proxmox.com
Fri Nov 6 11:03:37 CET 2020


modeled after pve's caching:
* for static files, we set the 'last-modified' header
* for all js/css files in the index, we add a ?t= parameter that
  is the mtime of the file
  (this should get updated when the respective package gets updated)

note: the first patch is not really related, and can be applied individually

Dominik Csapak (6):
  proxmox-backup-proxy: remove unnecessary alias
  tools/fs: add helpers to get the mtime of a file
  server/rest: set last-modified for static files
  server/config: add ability to get mtime of files for template
  proxmox-backup-proxy: add cache parameter to index
  ui: set also extjs language

 src/bin/proxmox-backup-proxy.rs | 13 ++++++--
 src/server/config.rs            | 55 +++++++++++++++++++++++----------
 src/server/rest.rs              | 25 +++++++++++++--
 src/tools/fs.rs                 | 22 +++++++++++++
 www/index.hbs                   | 33 ++++++++++----------
 5 files changed, 109 insertions(+), 39 deletions(-)

-- 
2.20.1






More information about the pbs-devel mailing list