How to fill in the last modified time in the sitemap so that it is easy to be accepted.
The last modified time in the sitemap should be filled in at the moment of the actual content change, using W3C Datetime format, and it is allowed to retain only the date part. The logic of this field being trusted is very simple: the crawler uses it to compare with the previous record to determine whether the page is worth refetching; once it loses its distinction, the credibility of other fields in the entire list will also decline. The two adjacent fields of change frequency and weight are all stated in the protocol as hints rather than instructions, so it is still the last modified time that truly determines the crawling rhythm.
What filling methods will lose trust
The first type is full-site refresh. By changing the template and upgrading the system once, the last modified time of all addresses is unified to the day, and in the short term, it seems that all pages are updated. However, the actual effect is that the crawling party finds that almost all pages have changed on the same day, which is equivalent to not providing information.
The second type is to take the build time instead of the content time. The running time of the generator is written into the content modification time, and the pages that have never changed are marked as recently modified each time, the problem is the same as above.
The third category is inconsistent with time zone and accuracy. Some addresses are written to seconds, while others only go to the day, or some are according to the server time zone and others according to the local time zone, and the same page will repeatedly change when compared. The accuracy can be omitted according to the protocol, but it should be consistent within the same site.
The fourth category is to fill in but not change. The archive pages that are not updated for a long time can keep the historical time, and manually brushing the expiration time to the recent date has a higher cost than not filling in.
Where to obtain the actual change time?
A reliable source is the record of the content's own status, not the page rendering time. The three comparable methods are: the time of formal release, the time of the last edit save, and the time when the status changes from draft or pending release to formal. The three should take the 'last action that truly affects the visible content to the reader', and the same site should use a fixed set of rules.
The determination of changes should also exclude fields that do not affect the main text. Whether adjusting tags, changing the category attribution, or replacing the pictures counts as content changes, there should be a clear standard within the site; once the standard is determined, it should not be specially handled in some columns.
How to coordinate with scheduled release
Timing the release to separate the "Editing Completion Time" and "Reader Visibility Time", in which case the latter should be taken: the content is visible to the public at the set time, and the last modified time should also be based on this moment, otherwise it will appear that the change time marked in the list is earlier than the actual accessible window of the page. AnQiCMS (AnQi CMS) makes the time factor into the background timing release capability, the content to be published is not visible to the public, and the draft status can still be checked separately through the preview link, the site map is generated according to the formal state, and the impact of these three on the time口径 should be clarified at one time, to avoid the preview action from advancing the time field.
When the link push is enabled at the same site, the time given by the two channels should be consistent: the push is for newly released or recently modified addresses, the list is for full check, if the time in the list is significantly lagging, the crawling party will rely more on the push results, and the list will degenerate into a backup.
Common questions
Question: Should the change frequency field also be filled in?Answer: It can be filled in, but it should be clear that it is a prompt. The protocol lists fixed slots, and the site should choose a slot that matches the real update rhythm, and it is more reasonable to fill in yearly or never than daily for long-term non-updated archived pages.
Question: Will filling in the weight as 1.0 make it easier to be crawled?Answer: No, the protocol states that this value does not affect the comparison with other site pages, it only affects the relative priority within the list, and the weight used in practice is much lower than the last modification time.
Question: If only the content has been changed to correct spelling errors, should the update time be changed?Answer: Yes. The criteria is whether the text has changed, not the size of the changes; maintaining consistent rules is more convenient than judging whether it is a major change.