Added caching
This commit is contained in:
parent
58bedb277d
commit
c547212971
3
app.js
3
app.js
@ -19,9 +19,10 @@ const emoji = require('markdown-it-emoji');
|
|||||||
const moment = require('moment');
|
const moment = require('moment');
|
||||||
|
|
||||||
const port = process.env.PORT || 8000;
|
const port = process.env.PORT || 8000;
|
||||||
|
const oneDay = 86400000;
|
||||||
|
|
||||||
app.use(express.static(__dirname + '/build'));
|
|
||||||
app.use(compress());
|
app.use(compress());
|
||||||
|
app.use(express.static(__dirname + '/build', {maxAge: oneDay}));
|
||||||
|
|
||||||
var md = markdown('commonmark', {html: true});
|
var md = markdown('commonmark', {html: true});
|
||||||
md.parser.use(emoji);
|
md.parser.use(emoji);
|
||||||
|
Loading…
Reference in New Issue
Block a user