fix缓存

This commit is contained in:
mtvpls
2026-03-14 12:47:01 +08:00
parent 11317abc98
commit cdba909716
3 changed files with 6 additions and 6 deletions
+1 -5
View File
@@ -91,11 +91,7 @@ export async function GET(request: NextRequest) {
generatedAt: new Date().toISOString(),
};
return NextResponse.json(response, {
headers: {
'Cache-Control': 'public, max-age=3600, s-maxage=3600', // 缓存1小时
},
});
return NextResponse.json(response);
} catch (error) {
console.error('AI评论生成失败:', error);