From 8fc3899def566e66cb857d605ba8d5e871e659a8 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Sat, 12 Apr 2014 14:17:37 -0400 Subject: [PATCH] Updated caching time variables --- app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 5353efe079..941a3dd689 100755 --- a/app.js +++ b/app.js @@ -57,8 +57,8 @@ mongoose.connection.on('error', function() { */ var hour = 3600000; -var day = (hour * 24); -var month = (day * 30); +var day = hour * 24; +var week = day * 7; app.set('port', process.env.PORT || 3000); app.set('views', path.join(__dirname, 'views')); @@ -92,7 +92,7 @@ app.use(function(req, res, next) { next(); }); app.use(flash()); -app.use(express.static(path.join(__dirname, 'public'), { maxAge: month })); +app.use(express.static(path.join(__dirname, 'public'), { maxAge: week })); app.use(function(req, res, next) { // Keep track of previous URL if (req.method !== 'GET') return next();