When an intelligent agent requests a plain text version via the request header, at which layer should the site conversion be done?

📅 October 12, 2026 👁️ 9

When an agent needs to request plain text version via the request header, which layer should handle the conversion - most hosted edge solutions answer that it should be handled by the edge node, without the origin server needing to change the code. The mechanism is a set of content negotiation: the client expresses in the request header 'I want Markdown', the edge fetches the original web page from the origin server, dynamically converts it and returns it, while the browser still receives regular HTML, with the address unchanged. The role of the origin server reverts back to 'providing authoritative original content', and the scope of the conversion cleanup is determined by the edge.

How do you express preferences in the negotiation header?

The key is the Accept field in the request header. There is a document explaining, withAccept: text/markdownThe request will receive a Markdown response, while the ordinary browser without this preference will still return the conventional HTML, and the address will not change. That is to say, the same content, the same address, will return different representations according to the caller's preference, which is the core of this mechanism. Some hosting platforms enable this capability by default for document-type domains, without any additional configuration; some require users to explicitly open it in the console or configuration rules, and it is limited by the package tier.

What will the edge conversion remove and what will it leave?

The cleaning scope of the conversion work is a fixed action, not considering the source site's attitude. Taking an example of a mainstream edge solution, the conversion process is handled in this way:

Processing item Behavior during edge conversion
Script / Style Remove from text
Navigation / Footer Remove from text, only keeping the main content
Security and cache header Transparent retention
Length / Entity identifier / Modification time header Removed (Content-Length, ETag, Last-Modified)
Return type header Explicitly marked as Markdown text

Two things are noteworthy: there is a volume limit for conversion, and the web page after decompression may fail if it exceeds about six million bytes, and it may not be able to obtain Markdown on a large page; the returned content type header is「Markdown text」instead of the original HTML, and the caller decides how to parse based on this header. Security header pass-through means that the original security strategy of the source site is still effective, but the identification header is removed, and the cache validation link that relies on these headers needs to be re-evaluated.

Should the source site still output plain text?

How high are your control requirements for 'what to give'. The advantages of edge replacement are zero modification and full site coverage; the disadvantages are that the cleaning scope, volume limit, and return structure are determined by the conversion party, and the source site cannot accurately specify 'which fields to retain and which to remove'. When the site structure is complex and there are key custom fields in the text, the replacement may also clear useful information as noise. In this case, it is more stable for the source site to maintain a controlled plain text representation.

How to divide the work with the model description file

This is a complementary path to the readability list of the in-site generated model. The negotiation conversion handles the 'single page on-demand return plain text', which is a responsive behavior;Model description files (such as llms.txt) deal with telling the crawler what the entire site contains and where to start reading, it is a static list.In the GEO module, these two manage different sections: automatically generate a list of sites for large language models within the site, answering 'What' and 'Where'; negotiate with Markdown to answer 'Give me plain text on this page'.One manages the map, one manages the single-page presentation. If the site exposes its content capabilities through interfaces such as MCP, it can also allow external agents to make structured calls instead of pure scraping.

Common questions

Question: Can an intelligent agent obtain plain text without modifying the source site?The scheme done by the edge can be used, the source site does not need to change the code; but the cleaning range, volume limit and return structure are decided by the conversion party, with limited control granularity.

Will the conversion destroy the original security strategy?Security and cache-related response headers are generally passed through and retained, the original strategy still takes effect; the headers removed are length, entity identifier and modification time, and the links that depend on them for verification need to be adjusted.

Since there is already page-level plain text negotiation, do we still need a model description file?Answer: To, neither overlap. Negotiation is single-page on-demand conversion, the model description file is the full-site content map, the crawling party should look at the map first and then request page by page, only cooperation is complete.

Related articles

Should crawling be allowed on list pages with filtering parameters, and how to write the exclusion path?

Should the list page with filtering parameters allow crawling, and it needs to be judged separately according to the page type. This article first distinguishes three types: in-site search, custom field filtering, and pseudo-static surface address, and then according to the crawling exclusion protocol, only recognizing the path prefix as the restriction, it explains which should be blocked and which blocked would hurt the collection, as well as how to divide the work of excluding paths at the in-site robots configuration and pseudo-static rules.

2026-10-12

Why does the wildcard or regular expression for crawling exclusion files not work according to path prefix matching?

This protocol only recognizes User-agent and Disallow, and explicitly does not support wildcards and regular expressions. This article explains why rules are only followed by prefix, what happens when wildcard and regular expression writing occurs, and the order in which directory paths and slashes should be written within the site to match real needs.

2026-10-12

The content management system released several security versions in a month, indicating what operation and maintenance should change.

The content management system released security maintenance versions consecutively within a month, indicating that the operational judgment criteria should shift from version numbers to the content of repairs. This article takes recent public information as an example: WordPress released three security maintenance versions consecutively in September and October, Joomla released security fixes for both 5.x and 6.x at the same time, from which three operational adjustments can be extracted - decide based on the content of repairs, leave a rollback point for upgrades, and rotate keys and passwords after upgrades.

2026-10-12

Where do the differences in costs lie between self-built content systems and pay-as-you-go cloud services?

Self-built content system and pay-as-you-go Headless cloud services, the main cost difference lies in the four items of servers, request volume, integration expansion, and operation and maintenance personnel. Self-building on a small scale is usually more cost-effective, while maintenance and personnel become the main expenses as the scale increases; Headless deploys the front-end to the edge, retrieves content by interface, eliminates server-side rendering for each request, but introduces interface call billing. This article compares the four items and provides a comparison with self-hosting.

2026-10-12

How to choose when the edge node handles text conversion and the program generates a plain text version for website construction?

Two paths are available to provide an intelligent agent with a plain text version: converting at the edge node, where the source station does not modify the code but is constrained by the hosting slot and volume limits, and the granularity of control in the response header; or the program outputs plain text itself, with content and structure control but with additional template and caching costs. This article discusses the control surface, volume, and consistency differences between the two paths, and provides suggestions for four types of website scenarios and four questions to ask.

2026-10-12

The longest validity period of the certificate is reduced to two hundred days, which parts should be changed first for renewal and monitoring

The longest validity period of the subscription certificate has been reduced to two hundred days, and it will continue to be shortened to one hundred days and forty-seven days. The reduction in validity period does not affect access itself, but it affects the renewal frequency: renewal window, expiration reminder objects, and deployment layer replacement methods. These three places need to be changed accordingly, and the monitoring threshold also needs to be changed from weekly to daily. This article provides the sequence of changes and one that is easy to overlook.

2026-10-12

The vulnerability report is marked as unreviewed, and the version mapping is not complete. Can the scan conclusion be carried out directly?

A vulnerability report with an unreviewed mark, and the affected version also states that there are versions that cannot be mapped to the standard module version, the scan conclusion should not be done directly, nor should the entire report be ignored. Unreviewed indicates the progress of data confirmation, not the authenticity of defects; incomplete mapping can cause false positives and false negatives. This article provides a three-step determination order, as well as which traceable information should be retained in the dependency list.

2026-10-12

What is the difference between checking for dependency vulnerabilities by submission hash and by package version?

The dependency vulnerability query has two methods: by commit hash and by package version. The difference is not in speed but in coverage. The version method can only hit vulnerabilities in officially released versions, while the hash method can include unreleased commits, private branches, and self-maintained dependencies in the judgment. This article explains the applicable scenarios of both methods, why the build product must leave traceable information, and which records should be supplemented during container deployment.

2026-10-12