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

Remove deprecated Google ping #432

Open
jcoyne opened this issue May 9, 2024 · 3 comments
Open

Remove deprecated Google ping #432

jcoyne opened this issue May 9, 2024 · 3 comments

Comments

@jcoyne
Copy link

jcoyne commented May 9, 2024

See https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping

Pinging with URL 'https://example.com/sitemap.xml.gz':
Ping failed for Google: #<OpenURI::HTTPError: 404 Sitemaps ping is deprecated. See https://developers.google.com/search/blog/2023/06/sitemaps-lastmod-ping.> (URL http://www.google.com/webmasters/tools/ping?sitemap=https%3A%2F%2Fexample.com%2Fsitemap.xml.gz)
@n-rodriguez
Copy link
Collaborator

ping @kjvarga

@dan-jensen
Copy link

Until someone contributes a PR to remove the Google ping from the defaults, it can be deleted from the defaults this way:

SitemapGenerator::Sitemap.search_engines.delete(:google)

Alternatively, because the Google ping is currently the only default, you could also do SitemapGenerator::Sitemap.search_engines = {}

@tbrammar
Copy link

Can't you just use rake sitemap:refresh:no_ping as per the documentation?

(obvs would be good to have it removed entirely)

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

4 participants