Over the last year /llms.txt went from a proposal to something a surprising number of developer-tool companies actually deploy. Out of curiosity (and because we were already pulling public /pricing pages and DNS MX/SPF records for a small Go enrichment tool), we ran a check across 100 DevTools and AI company domains.
The headline number surprised me: 80 out of 100 already serve a valid /llms.txt file at the root domain (and 94 out of 100 publish a public /pricing page).
The irony in the missing 20 was hard to miss. stripe.com, cloudflare.com, vercel.com, supabase.com, neon.tech, and resend.com all ship clean /llms.txt briefs at their apex domain. Meanwhile anthropic.com, openai.com, perplexity.ai, huggingface.co, and langchain.com returned 404 at https://<apex>/llms.txt (most of them keep docs on a docs.* subdomain instead of the marketing root).
The caching bug a reader caught for us
A few days after publishing the dataset, another developer left a sharp comment on our post: if you fetch /llms.txt alongside /pricing, how are you handling caching? Because /llms.txt changes occasionally, while caching /pricing blindly means serving stale prices right after a launch.
He was right. We had been doing unconditional GETs on both endpoints every time, wasting bandwidth on unchanged /llms.txt files while not exposing any cache metadata to callers who wanted to poll them cheaply.
When we actually inspected live HTTP response headers on /llms.txt endpoints in the wild, they were all over the map:
-
vercel.com/llms.txtsendsCache-Control: public, max-age=0, s-maxage=3600, stale-while-revalidate=86400along with a strongETag, and honorsIf-None-Matchwith a cleanHTTP 304 Not Modified. - Several static-doc hosts send
Last-Modifiedwithout anETag. - A fair number of custom setups send neither validator and return
200 OKevery time even when nothing changed.
Splitting conditional 304 revalidation from live /pricing
We changed our Go HTTP client to treat /llms.txt and /pricing as two completely different freshness classes:
-
/llms.txtuses conditional revalidation + a bounded short-TTL cache.- Callers can pass their own
If-None-MatchorIf-Modified-Sincevalidator, or rely on an in-memory cache (sync.RWMutex, capped at 256 entries with oldest-entry eviction so long-lived containers cannot leak memory, default TTL 300s, hard cap 3600s). - Within the TTL window, a warm hit returns immediately (
llmsTxtCacheStatus: "cache_hit"). - Once stale (or when the caller supplies an ETag), we send
If-None-Match/If-Modified-Since. If the origin replies304 Not Modified, we refresh the timestamp and reuse the cached brief without re-downloading the body (llmsTxtNotModified: true,llmsTxtCacheStatus: "not_modified_304"). - Every response exposes
llmsTxtEtag,llmsTxtLastModified,llmsTxtCacheControl, andllmsTxtFetchedAtso callers running scheduled jobs can store the ETag themselves.
- Callers can pass their own
-
/pricingis never cached.- Every
/pricingfetch explicitly sendsCache-Control: no-cacheand bypasses the/llms.txtcache completely. Even when a second call tovercel.comreturns304 Not Modifiedfor/llms.txt,pricingSummarystill hits the origin live.
- Every
Here is the minimal conditional request pattern in Go:
req, err := http.NewRequestWithContext(ctx, http.MethodGet, targetURL, nil) if err != nil { return PageResult{}, err } if ifNoneMatch != "" { req.Header.Set("If-None-Match", ifNoneMatch) } if ifModifiedSince != "" { req.Header.Set("If-Modified-Since", ifModifiedSince) } if forceNoCache { req.Header.Set("Cache-Control", "no-cache") } resp, err := c.httpClient.Do(req) if err != nil { return PageResult{}, err } defer resp.Body.Close() if resp.StatusCode == http.StatusNotModified { return PageResult{ StatusCode: http.StatusNotModified, NotModified: true, ETag: resp.Header.Get("ETag"), LastModified: resp.Header.Get("Last-Modified"), CacheControl: resp.Header.Get("Cache-Control"), }, nil } One side note on SSRF when crawling user-supplied domains
If you expose a /llms.txt or /pricing fetcher behind an HTTP API or MCP server, checking the hostname string before calling http.Get is not enough. A caller can point a domain's A record at 169.254.169.254 or 127.0.0.1 (DNS rebinding) or return a 302 redirect to an internal IP.
In Go, the clean place to enforce it is inside http.Transport.DialContext right after resolving IPs, plus inside http.Client.CheckRedirect:
DialContext: func(ctx context.Context, network, addr string) (net.Conn, error) { host, port, err := net.SplitHostPort(addr) if err != nil { return nil, err } if err := ValidateHost(host); err != nil { return nil, err } ips, err := net.DefaultResolver.LookupIPAddr(ctx, host) if err != nil { return nil, err } for _, ipAddr := range ips { if isBlockedIP(ipAddr.IP) { return nil, fmt.Errorf("blocked private IP: %s", ipAddr.IP) } } return dialer.DialContext(ctx, network, net.JoinHostPort(ips[0].IP.String(), port)) } Dialing the already-validated IP directly avoids a second DNS lookup between the check and the TCP connect.
Note: The full 100-company dataset (MIT CSV/JSON) is open at Top 100 Dev & AI /llms.txt & Pricing Index. The hosted Go runner and MCP wrapper live at llms-txt-scraper and website-contacts-pricing-mcp on GitHub.