From 0ab498a113de72373c2b767610e1a356c2e60a09 Mon Sep 17 00:00:00 2001 From: chris Date: Sat, 2 Aug 2025 07:42:51 -0400 Subject: [PATCH] stop server caching --- server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server.js b/server.js index e445d98..de7dcef 100644 --- a/server.js +++ b/server.js @@ -34,6 +34,10 @@ async function startServer() { console.log("Connected to the SQLite database."); await initializeDatabase(); + app.use('/api', (req, res, next) => { + res.set('Cache-Control', 'no-store'); + next(); + }); setupRoutes(); app.listen(PORT, () => console.log(`Server running on http://localhost:${PORT}`));