mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
front caching
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
3beb5160be
commit
5554c29eff
@ -24,7 +24,7 @@ const dist = resolve(__dirname, 'dist')
|
||||
|
||||
console.log('serving static files from', dist)
|
||||
|
||||
app.use(express.static(dist, { /* maxAge: '10m' */ }))
|
||||
app.use(express.static(dist, { maxAge: '10m' }))
|
||||
|
||||
app.get('*', function (request, response) {
|
||||
response.sendFile(join(dist, 'index.html'))
|
||||
|
Loading…
Reference in New Issue
Block a user