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

Add lastmod #48

Open
starskyreverie opened this issue Jan 9, 2024 · 1 comment
Open

Add lastmod #48

starskyreverie opened this issue Jan 9, 2024 · 1 comment

Comments

@starskyreverie
Copy link

Google recently deprecated the sitemap ping (1-6-2023) in favor of the <lastmod> element. Any chance that could be integrated?

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

@mstibbard
Copy link

This appears infeasible to implement properly because svelte-sitemap would need to analyse the prerendered pages for material changes to the content. The linked page says:

... when we say "last modification", we actually mean "last significant modification". If your CMS changed an insignificant piece of text in the sidebar or footer, you don't have to update the lastmod value for that page. However if you changed the primary text, added or changed structured data, or updated some links, do update the lastmod value.

Google states they will ignore your use of the field if you misuse lastmod with not-significant-enough changes:

.. it needs to consistently match reality: if your page changed 7 years ago, but you're telling us in the lastmod element that it changed yesterday, eventually we're not going to believe you anymore when it comes to the last modified date of your pages.

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

2 participants