From 972ecdfae3f492c57a0cef0a117eb6c360c87c57 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 9 Dec 2025 12:31:26 +0100 Subject: [PATCH] server: issue a warning when a cached/expired version of the app is requested --- src/server/node/server.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/server/node/server.mjs b/src/server/node/server.mjs index c87e248c..df07e4fb 100644 --- a/src/server/node/server.mjs +++ b/src/server/node/server.mjs @@ -216,7 +216,15 @@ class WebServer extends EventEmitter { return true } catch(e) {} + console.error(`(ERROR, HTTP) File not found: ${url}`) + + if (url.match(/\/client\/index.*\.js/)) { + console.warn('(WARNING) It seems a client attempted to load an older version of the app,', + 'this may occur when using a homescreen bookmark on mobile devices.', + 'If that\'s the case, please delete it and browse to the app\'s url again.') + } + res.writeHead(404) res.end()