Open andrewtennison opened 12 years ago
this can be added to node:
var oneYear = 31557600000; app.use(express.static(__dirname + '/public', { maxAge: oneYear }));
You can configure app for dev + production and set age just for production. Should be combined with some sort of file versioning. Possibly