1
0
mirror of https://github.com/trambarhq/relaks-wordpress-example.git synced 2025-09-02 20:52:33 +02:00

Extended update to 30 seconds.

Added maxAge to static files.
This commit is contained in:
Chung Leong
2019-02-03 20:44:27 +01:00
parent 3eb4f31537
commit 669bffcc18
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ let root = PageRenderer.basePath;
app.set('json spaces', 2);
app.use(Compression())
app.use(SpiderDetector.middleware());
app.use(root, Express.static(`${__dirname}/www`));
app.use(root, Express.static(`${__dirname}/www`, { maxAge: 3600000 }));
app.get(root + '.mtime', handleTimestampRequest);
app.get(root + '.cache', handleCacheStatusRequest);
app.get(root + 'json/*', handleJSONRequest);