feat(core): add public in cache-control header

This commit is contained in:
DIYgod
2019-04-29 11:36:03 +08:00
parent 847bb00a9e
commit c1f856391d
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ const headers = {
'Access-Control-Allow-Headers': 'Content-Type, Content-Length, Authorization, Accept, X-Requested-With',
'Access-Control-Allow-Methods': 'GET',
'Content-Type': 'application/xml; charset=utf-8',
'Cache-Control': `max-age=${config.cacheExpire}`,
'Cache-Control': `public, max-age=${config.cacheExpire}`,
};
module.exports = async (ctx, next) => {