Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: make the cache-control header public on public artefact downloads #946

Open
jeswr opened this issue Jul 21, 2024 · 0 comments

Comments

@jeswr
Copy link

jeswr commented Jul 21, 2024

For the record https://zenodo.org/records/12770024; the URL to download a ZIP of the artifact is https://zenodo.org/records/12770024/files/eyereasoner/eye-js-v16.15.25.zip?download=1. Inspecting the headers of this URL I see that the cache-control is set to private.

$ curl -I https://zenodo.org/records/12770024/files/eyereasoner/eye-js-v16.15.25.zip?download=1
cache-control: private

Given that these are publicly available to download; and the contents are immutable for a given record, would it be possible to (1) set the cache-control to public and (2) set the max-age in the Cache-Control to e.g. 1 day (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control). This would allow CDNs and proxies such as squid to cache these for re-use across multiple users.

@jeswr jeswr changed the title Make the cache-control header public on public artefact downloads. feature request: make the cache-control header public on public artefact downloads Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant