How to fill in the last modified time in the sitemap so that it is easy to be accepted.

📅 October 12, 2026 👁️ 5

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.

Related articles

How many addresses can a single sitemap file hold, and how should it be split if it exceeds the limit?

The single sitemap file has two concurrent limits: the number of addresses should not exceed 50,000, the uncompressed volume should not exceed 50MB, and any that reach the top must be split into multiple fragment files, and then a index file is used to list the fragments one by one. This article explains how to calculate the limit according to the original protocol, how to name the fragment directory stably, the division of labor between the index file and the sub-maps, as well as the pseudo-static rules and configuration to check when the background automatically generates the sitemap, to avoid bypassing the limit by trimming the number of addresses in an erroneous manner.

2026-10-12

Add integrity verification to external scripts, why do you still need to explicitly write cross-domain attributes in the tag?

When adding integrity check to external scripts, the cross-domain attribute must be explicitly written in the tag, because resources with integrity check must go through cross-domain requests, otherwise the browser will not consider the check result as available. The check value consists of an algorithm prefix plus an encoded hash, and multiple summary alternatives can be provided at the same time. This article explains where the check occurs, the format and alternatives, as well as how to batch verify reference points after template changes.

2026-10-11

Content security policy reports first and does not block, deciding to really block after seeing what happens

Content Security Policy runs in only-report mode first, used to collect violation records without blocking execution, which is a gray-scale method before going live with intercept rules. There are two ways to write the report target, new browsers will ignore the old address, and both should be written during the compatibility period. This article explains what types of information to look at during the gray period, when to cut off the intercept, and how to avoid a blank screen when changing the template.

2026-10-11

The large attachment upload is blocked at 413, why is it not understandable in the browser?

When uploading a large attachment, it is blocked by the gateway and returns 413. Browsers often cannot display the reason because the limit is set before the request enters the application, and the program does not have time to take over. The default limit for this type of nginx is about one megabyte, which can be set by segment according to the site and location. This article explains which segment the limit controls, why the error is difficult to read, and how to check the three types of entry points for attachment upload, batch import, and interface upload.

2026-10-11

Forms and comments are flooded by robots, besides the captcha, what else can be done to add several layers?

Form and comment anti-robot spambot prevention, CAPTCHA only blocks the automatic submission layer, and cannot block scripts that have bypassed verification and low-cost manual submissions. The layered叠加 can be: submission verification (reCAPTCHA CAPTCHA, timestamp and honeytrap fields), content filtering (sensitive word filtering, keyword replacement, content review), publishing strategy (review before posting, pending publication status, frequency limit and login threshold). This article explains the limitations of each layer, as well as what to adjust when all three layers cannot block it.

2026-10-12

Whether to install the preview version on the production station, and how to choose between Release Candidate and formal version

The candidate version is at the final stage of the release process, the purpose is to let people verify the upcoming packaged final version, not the version for daily use on production stations. This article uses the recent example of Joomla simultaneously releasing 6.2 candidate version and 5.x, 6.x dual branch security repair announcements to explain where the candidate version should run, which branch to upgrade first when running dual version lines in parallel, and the backup and rollback points that must be prepared before the upgrade.

2026-10-12

When scheduling content and batch importing at the same time, what should be paid attention to in content scheduling?

Scheduled release and batch import together, the key to scheduling is in state division: the documents imported in batch are first stored as draft or pending release, and then released peak-time with scheduled release. This article explains the meaning of each of the four document states: formal, draft, pending release, and recycling bin, how to verify the draft link with preview parameters, the troubleshooting sequence of missing fields in import, and how to recover deleted content through the recycling bin.

2026-10-12

How to write the rollback target instruction in order when static files fall onto the Web server?

When the static rules fall to the Web server, the instruction responsible for finding files in order is often written incorrectly for the fallback target. Its semantics is to check the existence of files in the given order, using the first matching file to handle the request in the current context; only if all do not exist is an internal redirection made to the last parameter. This article explains two syntax forms, the slash convention for directory judgment, and the common mistakes when falling back to the back-end entry.

2026-10-12