app: set Cache-Control to no-cache in welcome page

This commit is contained in:
DIYgod
2018-06-02 19:37:15 +08:00
parent f5b4874ba7
commit 274cd56a4d

View File

@@ -40,6 +40,9 @@ router.get('/', async (ctx) => {
showDebug = config.debugInfo === true || config.debugInfo === ctx.query.debug;
}
ctx.set({
'Cache-Control': 'no-cache',
});
ctx.body = art(path.resolve(__dirname, './views/welcome.art'), {
showDebug,
debug: [