front caching

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-14 09:40:31 +02:00
parent 3beb5160be
commit 5554c29eff
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -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'))