-
Notifications
You must be signed in to change notification settings - Fork 18k
sum.golang.org: should not respond with "410 Gone" #41986
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
Comments
@mpalmer Thanks for reaching out. As briefly hinted in #31995 (comment), this is an implementation detail of our caching. We want to utilize HTTP caching and, unfortunately, some CDNs do not support 404 response caching yet. We are keeping an eye on this. The primary consumer of cc @katiehockman @heschik |
Well, it confused the living heck out of me for a while, because the |
What was the error it gave you? Perhaps we can improve the error message somehow. |
Whilst I'm not in a position to reproduce the problem just at the moment, and the original error disappeared off the backscroll buffer due to an unfortunately large |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@bcmills I just struck upon this. The error I encountered was:
In my case, I tagged my library but forgot to |
@suzmue @findleyr @heschi According to the latest google cdn doc, 404 is classified as a cacheable status code. Should we flip to use 404? |
This is done.
|
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Added an initial release (
v0.1.0
) to the modulegh.loli.garden/sol1/gormzerolog
, rango run .
in a private codebase which uses that module.What did you expect to see?
Something slightly less final and forever than "410 Gone".
What did you see instead?
An error which indicated that
sum.golang.org
had responded to a request for thegormzerolog
module with "410 Gone".Commentary
410 is a HTTP response code that means "access to the target resource is no longer available at the origin server and that this condition is likely to be permanent." (RFC7231, s6.5.9). In the case of
sum.golang.org
, it seems unlikely that the origin server knows, or has reason to believe, that the lack of a third-party module version is likely to be permanent. Indeed, only a few minutes after serving that 410 response, the sum database was able to serve checksums for that module version, indicating that the lack of access to the target resource was, indeed, not permanent.Rather than a 410, requests for module checksums which do not refer to a known module version should provide a response of 404 Not Found. Again, per RFC7231, s6.5.9:
The text was updated successfully, but these errors were encountered: