fix: prevent caching retrieval history exports

This commit is contained in:
2026-10-16 23:12:53 +08:00
parent f5cddee937
commit b31cfb5de6
+1
View File
@@ -42,6 +42,7 @@ def download_history(payload: ExportHistory, db: Session = Depends(get_db)):
media_type="application/x-ndjson; charset=utf-8", media_type="application/x-ndjson; charset=utf-8",
headers={ headers={
"Content-Disposition": f'attachment; filename="nalati-retrieval-{export_id}.jsonl"', "Content-Disposition": f'attachment; filename="nalati-retrieval-{export_id}.jsonl"',
"Cache-Control": "no-store",
"X-Records-SHA256": digest, "X-Records-SHA256": digest,
"X-Content-Type-Options": "nosniff", "X-Content-Type-Options": "nosniff",
}, },