When an intelligent agent requests a plain text version via the request header, at which layer should the site conversion be done?
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.