Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/pkgsite: invalidate cache for pkg.go.dev/<import-path> when a new latest version is available #37026
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66 Safari/537.36
What did you do?
Visited the above URL, shortly after
What did you expect to see?
Refreshing the page to take me to the latest version.
What did you see instead?
I was left on the
To my mind the latest version should always be shown for the bare, non-canonical URL.
The red "latest" link should then show on the canonical version pages that are not the latest version. e.g.
Related to #36807
https://pkg.go.dev/github.com/sethvargo/go-githubactions?tab=doc showed v0.1.1 for me at the time of submitting this issue. The bug to my mind is that immediately after