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}`));