Browse Source

cache control headers

pull/2/head
Peter Johnson 10 years ago
parent
commit
d2c93f8336
  1. 6
      express.js

6
express.js

@ -2,4 +2,10 @@
var express = require('express'); var express = require('express');
var app = express(); var app = express();
// enable client-side caching of 60s by default
app.use(function(req, res, next){
res.header('Cache-Control','public,max-age=60');
next();
});
module.exports = app; module.exports = app;
Loading…
Cancel
Save