We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a4f539 commit 771f007Copy full SHA for 771f007
config.default.json
@@ -9,6 +9,7 @@
9
"runner": false
10
},
11
"max-request-size": "1MB",
12
+ "max-age": 86400,
13
"store": {
14
"adapter": "sqlite",
15
"sqlite": {
lib/app.js
@@ -218,7 +218,8 @@ app.connect = function (callback) {
218
// look like a bin url) then it gets 404'd - i.e. you can't request /css/style.css
219
// because it'll return a 404.
220
app.use(mount, (function () {
221
- var staticRouter = express.static(path.join(app.get('root'), 'public'));
+ var staticRouter = express.static(path.join(app.get('root'), 'public'),
222
+ {maxAge: (options['max-age'] || 86400) * 1000});
223
224
return function (req, res, next) {
225
// construct the full request url
0 commit comments