fix: prevent caching retrieval history exports
This commit is contained in:
@@ -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",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user