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

add redirect on package.tar.gz download #698

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gbaz
Copy link
Contributor

@gbaz gbaz commented Mar 18, 2018

Resolves #659

The approach here is different than in that ticket. We just check if there is a "?real=true" at the end of the .tar.gz url. If there isn't, we bump the download count and redirect to a url that does have the path. If there is, then we just return the .tar.gz.

That way the cdn can cache the real url, and everything works as is.

@gbaz
Copy link
Contributor Author

gbaz commented Mar 18, 2018

This breaks some tests, they'll need to be fixed.

@hvr
Copy link
Member

hvr commented Mar 18, 2018

Let's hold off on this one for a bit to get us more time to consider the consequences for Hackage clients out there...

@gbaz
Copy link
Contributor Author

gbaz commented Mar 19, 2018

Indeed, we're blocked on at least changes to the hackage-security backends, and perhaps other tools as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants