Fix to initial loading and cache headers

This commit is contained in:
Jori Lallo
2016-06-26 23:15:32 -07:00
parent f454caa898
commit 296abab7eb
3 changed files with 20 additions and 28 deletions

View File

@ -35,10 +35,6 @@ if (process.env.NODE_ENV === 'production') {
});
router.get('*', async (ctx) => {
ctx.set({
'Cache-Control': `max-age=${24*60*60}`,
});
const stats = await sendfile(ctx, path.join(__dirname, '../dist/index.html'));
if (!ctx.status) ctx.throw(httpErrors.NotFound());
});