inveniosoftware / invenio-files-rest

REST API for uploading/downloading files for Invenio.
https://invenio-files-rest.readthedocs.io
MIT License
9 stars 67 forks source link

send file: change cache control behaviour #283

Open NRodriguezcuellar opened 2 years ago

NRodriguezcuellar commented 2 years ago

if files are restricted the cache-control header will now be set to "no-cache" so that resources are always checked to be fresh before being served.

some context on this PR can be found here: https://codimd.web.cern.ch/DpHiJGHSRlGGyPg1KNTcmw#

partly closes https://github.com/inveniosoftware/invenio-communities/issues/718

ntarocco commented 2 years ago

LGTM! Tests failing because of FAILED invenio_files_rest/helpers.py::PYCODESTYLE.

Pineirin commented 2 years ago

LGTM, but can you fix the tests?