From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 85A8C66496 for ; Fri, 6 Nov 2020 11:03:49 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 511E91F99E for ; Fri, 6 Nov 2020 11:03:49 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 40C8C1F949 for ; Fri, 6 Nov 2020 11:03:48 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0CB634604A for ; Fri, 6 Nov 2020 11:03:48 +0100 (CET) From: Dominik Csapak To: pbs-devel@lists.proxmox.com Date: Fri, 6 Nov 2020 11:03:37 +0100 Message-Id: <20201106100343.12161-1-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.397 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [fs.rs, config.rs, proxmox-backup-proxy.rs, rest.rs] Subject: [pbs-devel] [PATCH proxmox-backup 0/6] improve caching behaviour for html resources X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Nov 2020 10:03:49 -0000 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