WIP: attempt to fix cache issues
This commit is contained in:
parent
2b7c256f4a
commit
c9be11d58a
@ -92,6 +92,13 @@ app.use(session({
|
|||||||
logged: false
|
logged: false
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// disable cache globally because it may break things between server restarts,
|
||||||
|
// since the paths aren't unique
|
||||||
|
app.use(function (req, res, next) {
|
||||||
|
res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
|
||||||
|
next();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
// home page
|
// home page
|
||||||
app.get("/", function (req, res) {
|
app.get("/", function (req, res) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user