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: Better handling of old versions #1411

Closed
EvanCarroll opened this issue May 31, 2021 · 4 comments
Closed

Feature Request: Better handling of old versions #1411

EvanCarroll opened this issue May 31, 2021 · 4 comments

Comments

@EvanCarroll
Copy link

It would be really nice if crates.io would not index old versions. If you're using an older version it would be great if the user had to click on the older version or search for it on crates.io. Google just always seem to prioritize older versions when I'm looking searching.

If that can't be done, it would be nice if users had an option to be redirected to the latest version of the create. Old versions are just of no use to me. If I'm reading the documentation, it's very likely that I've already updated my version to the latest.

@syphar
Copy link
Member

syphar commented May 31, 2021

I don't know enough about google here.

But: our sitemap only contains URLs that redirect to the latest version.

From what I understand of your request is that it could be related to the discussion in #1006 (which is unsolved currently)

@EvanCarroll
Copy link
Author

Not sure, the problem is certainly google related. If I search for warp rust reply, I get

That takes you to

That's almost certainly not what your users want. They're going to want

The problem is they may not notice that until after they're a bit late in the game.

Delisting urls that don't have /latest/ or /*/ in their name would seem like a reasonable solution. And allow people to -- from the latest -- read the docs on earlier versions.

@syphar
Copy link
Member

syphar commented Jan 11, 2023

I believe #1438 and the continous work of @jsha is the solution here.

We already have much improved search results where we see the latest page when the element still exists in it.

I'm closing this issue.

@syphar syphar closed this as completed Jan 11, 2023
@jsha
Copy link
Contributor

jsha commented Jan 11, 2023

FWIW, I checked this specific example, and the results for "rust warp reply" on Google are currently:

  1. https://docs.rs/warp/0.1.0/warp/reply/index.html
  2. https://docs.rs/warp/latest/warp/reply/index.html

Not great; we want #2 to be #1, and #1 not to be listed.

I checked the Google Search Console, and Google has recently crawled both of these URLs, and sees the canonical link pointing from #1 to #2. It's just that Google is choosing to disregard the canonical link. Presumably the problem is some combination of:

  • The two pages are very different (due to the default-collapsed docblock on Aliasing latest #1), so Google doesn't want to canonicalize one to the other.
  • Aliasing latest #1 has a longer history of being crawled, so may be seen as more reputable.

I'm hopeful that over time, Google will establish a preference for the /latest/ URLs, since "longer history of being crawled" will be less relevant, but at least for now this is an example where canonicalization is not doing the trick. Still, I think it's reasonable to close this issue and keep tracking progress under #1438.

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

3 participants