Skip to content

Commit 132fa2f

Browse files
committed
fix: add record files restriction option to enable cache-control header
1 parent 2cb7675 commit 132fa2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

invenio_app_rdm/records_ui/views/records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def record_file_download(pid_value, file_item=None, is_preview=False, **kwargs):
411411
obj = file_item._file.object_version
412412
emitter(current_app, record=file_item._record, obj=obj, via_api=False)
413413

414-
return file_item.send_file(as_attachment=download)
414+
return file_item.send_file(as_attachment=download, restricted=False)
415415

416416

417417
@pass_record_or_draft(expand=False)

0 commit comments

Comments
 (0)