resolve Rust state lifetime errors in Node service handlers

This commit is contained in:
2026-09-05 11:00:31 -07:00
parent c986194e64
commit 11d6c346e8
3 changed files with 201 additions and 185 deletions

View File

@@ -396,6 +396,12 @@ async function start() {
res.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');
}
}));
expressApp.use(express.static(path.join(frontendDir, 'src'), {
etag: false,
setHeaders: (res) => {
res.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');
}
}));
expressApp.get('*', (req, res) => {
res.set('Cache-Control', 'no-store, no-cache, must-revalidate, private');
res.sendFile(path.join(frontendDir, 'index.html'));