mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
ESlint quotes
This commit is contained in:
@@ -24,11 +24,11 @@ module.exports = function (middleware) {
|
||||
|
||||
middleware.addExpiresHeaders = function (req, res, next) {
|
||||
if (req.app.enabled('cache')) {
|
||||
res.setHeader("Cache-Control", "public, max-age=5184000");
|
||||
res.setHeader("Expires", new Date(Date.now() + 5184000000).toUTCString());
|
||||
res.setHeader('Cache-Control', 'public, max-age=5184000');
|
||||
res.setHeader('Expires', new Date(Date.now() + 5184000000).toUTCString());
|
||||
} else {
|
||||
res.setHeader("Cache-Control", "public, max-age=0");
|
||||
res.setHeader("Expires", new Date().toUTCString());
|
||||
res.setHeader('Cache-Control', 'public, max-age=0');
|
||||
res.setHeader('Expires', new Date().toUTCString());
|
||||
}
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user