Skip to content

Commit

Permalink
add cache control
Browse files Browse the repository at this point in the history
  • Loading branch information
portokallidis committed Apr 23, 2015
1 parent ab60111 commit 4bc4fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ module.exports = function(app) {
}));

if ('production' === env) {
app.use(favicon(path.join(config.root, 'public', 'favicon.ico')));
app.use(express.static(path.join(config.root, 'public')));
app.use(favicon(path.join(config.root, 'public', 'favicon.ico'),{maxAge: '1y'}));
app.use(express.static(path.join(config.root, 'public'),{maxAge: '1d'}));
app.set('appPath', config.root + '/public');
app.use(morgan('dev'));
}
Expand Down

0 comments on commit 4bc4fc0

Please sign in to comment.