fix: try different cache

This commit is contained in:
Torsten Dittmann
2023-10-03 00:10:23 +02:00
parent f0f394d15d
commit 1e1d7607fa

View File

@@ -7,8 +7,8 @@ async function main() {
const app = express();
app.use(compression());
app.use(await sitemap());
app.use(function (req, res, next) {
res.setHeader('Cache-Control', 'max-age 3600, must-revalidate');
app.use(function (_req, res, next) {
res.setHeader('Cache-Control', 'max-age=3600, no-cache');
next();
});
app.use(handler);