Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
keep enable Cache-Control
Browse files Browse the repository at this point in the history
helmet.defaults() disabeles Cache-Control. I guess it's controversial to disable it.
  • Loading branch information
memolog committed Mar 30, 2014
1 parent afb0f97 commit 72c813d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,11 @@ module.exports = function(db) {
// connect flash for flash messages
app.use(flash());

app.use(helmet.defaults());
app.use(helmet.xframe());
app.use(helmet.iexss());
app.use(helmet.contentTypeOptions());
app.use(helmet.ienoopen());
app.disable('x-powered-by');

// routes should be at the last
app.use(app.router);
Expand Down

0 comments on commit 72c813d

Please sign in to comment.