server: issue a warning when a cached/expired version of the app is requested

This commit is contained in:
jean-emmanuel 2025-12-09 12:31:26 +01:00
parent 92ef3b7ac1
commit 972ecdfae3

View file

@ -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()