mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-09 23:00:48 +08:00
feat(core): set cache-control max-age equal to config.cacheExpire
This commit is contained in:
@@ -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 / 2}`,
|
||||
'Cache-Control': `max-age=${config.cacheExpire}`,
|
||||
};
|
||||
|
||||
module.exports = async (ctx, next) => {
|
||||
|
||||
Reference in New Issue
Block a user