push something that actually works

pull/1/head
ansuz 5 years ago
parent 52e5644234
commit 874093a126

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

Loading…
Cancel
Save