From b31cfb5de6e3ccde1d60a694b6c57575cf2741e2 Mon Sep 17 00:00:00 2001 From: jhy <184825448@qq.com> Date: Fri, 16 Oct 2026 23:12:53 +0800 Subject: [PATCH] fix: prevent caching retrieval history exports --- backend/app/api/routes/retrieval.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/api/routes/retrieval.py b/backend/app/api/routes/retrieval.py index 3af793d..c998180 100644 --- a/backend/app/api/routes/retrieval.py +++ b/backend/app/api/routes/retrieval.py @@ -42,6 +42,7 @@ def download_history(payload: ExportHistory, db: Session = Depends(get_db)): media_type="application/x-ndjson; charset=utf-8", headers={ "Content-Disposition": f'attachment; filename="nalati-retrieval-{export_id}.jsonl"', + "Cache-Control": "no-store", "X-Records-SHA256": digest, "X-Content-Type-Options": "nosniff", },