You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
var express = require('express'), |
|
app = express(); |
|
|
|
// middleware modules |
|
// app.use( require('cookie-parser')() ); |
|
|
|
// 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; |