sum.golang.org: should not respond with "410 Gone" #41986
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 |
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 |
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 modulegithub.com/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: