mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 05:59:00 +08:00
feat(core): add public in cache-control header
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}`,
|
||||
'Cache-Control': `public, max-age=${config.cacheExpire}`,
|
||||
};
|
||||
|
||||
module.exports = async (ctx, next) => {
|
||||
|
||||
Reference in New Issue
Block a user