Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion server.py
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,15 @@ async def get_tags_csv(request):
return web.json_response({"success": False, "error": "无效的文件名"}, status=400)

tags_data = config_manager.load_tags_csv(filename)
return web.json_response({"success": True, "data": tags_data})
return web.json_response(
{"success": True, "data": tags_data},
# FIXME #81暫時處裡,防止請求被快取(但根本問題尚需優化)
headers={
"Cache-Control": "no-store, no-cache, must-revalidate, max-age=0",
"Pragma": "no-cache",
"Expires": "0"
}
)
except Exception as e:
print(f"{ERROR_PREFIX} 加载CSV标签文件失败 | 错误:{str(e)}")
return web.json_response({"success": False, "error": str(e)}, status=500)
Expand Down