push something that actually works

This commit is contained in:
ansuz 2019-08-26 18:42:20 +02:00
parent 52e5644234
commit 874093a126
1 changed files with 0 additions and 2 deletions

View File

@ -116,9 +116,7 @@ app.use(function (req, res, next) {
res.statusCode = 204;
return void res.end();
}
});
app.use(function (req, res, next) {
setHeaders(req, res);
if (/[\?\&]ver=[^\/]+$/.test(req.url)) { res.setHeader("Cache-Control", "max-age=31536000"); }
next();