stop server caching
This commit is contained in:
parent
9480449b72
commit
29326699de
@ -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}`));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user