Fix mobile view Bugs and add versions to static files for cache breaking

This commit is contained in:
Florian Zumpe
2026-06-17 17:29:39 +02:00
parent 13770f21e3
commit 7760ae4f49
12 changed files with 77 additions and 48 deletions
+2 -1
View File
@@ -20,11 +20,12 @@ function sendFileResource(res, file, contentType = null) {
if (contentType) res.type(contentType);
res.setHeader('Content-Disposition', `inline; filename*=UTF-8''${encodeURIComponent(file.filename)}`);
res.setHeader('X-Content-Type-Options', 'nosniff');
res.setHeader('Cache-Control', 'no-cache, max-age=0, must-revalidate');
return res.sendFile(file.absolutePath, {
acceptRanges: true,
cacheControl: true,
immutable: false,
maxAge: '1h'
maxAge: 0
});
}