Search.../

changeFrequency

Sets or gets how frequently the page is likely to change.

Description

The value of the changeFrequency property provides general information to search engines and may not correlate exactly to how often they crawl the page.

Valid values:

  • "always"
  • "hourly"
  • "daily"
  • "weekly"
  • "monthly"
  • "yearly"
  • "never"

Type:

stringRead & Write

Was this helpful?

Get the change frequency of the sitemap entry

Copy Code
1export function myRouter_SiteMap(sitemapRequest) {
2
3 let changeFrequency = entry.changeFrequency; // "weekly"
4
5}
Set the change frequency of the sitemap entry

Copy Code
1export function myRouter_SiteMap(sitemapRequest) {
2
3 entry.changeFrequency = "weekly";
4
5}