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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user