mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-06 04:22:07 +00:00
fix: try different cache
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user