* Adds headers to a response to enable caching.
()
| 20 | * Adds headers to a response to enable caching. |
| 21 | */ |
| 22 | function cacheControl() { |
| 23 | return function(req, res, next) { |
| 24 | res.setHeader("Cache-Control", "public, max-age=300"); |
| 25 | return next(); |
| 26 | }; |
| 27 | } |
| 28 | |
| 29 | function logger() { |
| 30 | express.logger.token("date", function() { |