Skip to content

Commit

Permalink
published 0.6.5
Browse files Browse the repository at this point in the history
  - etag options flag
  • Loading branch information
jonrobins committed Feb 12, 2018
1 parent c25cce5 commit ec7fb30
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ module.exports = function (app, options) {
// Enable CORS
app.use(cors({ preflightContinue: true }));

// Set Etag
app.set('etag', options.etag);
// Disable etag
if (options.etag === false){
app.set('etag', false);
}

// Setup Cache Control
app.use(cache());
Expand Down

0 comments on commit ec7fb30

Please sign in to comment.