feat: 实现成人内容过滤设置的动态处理,优化搜索API的缓存控制

This commit is contained in:
katelya
2025-09-05 11:37:25 +08:00
parent f0d2ea9d14
commit bdfad48656
4 changed files with 59 additions and 5 deletions
+12
View File
@@ -34,6 +34,12 @@ export async function GET(_request: NextRequest) {
auto_play: true,
video_quality: 'auto'
}
}, {
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '0'
}
});
} catch (error) {
// eslint-disable-next-line no-console
@@ -78,6 +84,12 @@ export async function PATCH(request: NextRequest) {
return NextResponse.json({
success: true,
message: '设置更新成功'
}, {
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '0'
}
});
} catch (error) {
// eslint-disable-next-line no-console