Skip to content

hotfix: serve /llms-full.txt as direct 200, not 307 - #603

Merged
Flotapponnier merged 1 commit into
mainfrom
hotfix/llms-full-txt-direct-200
Jun 21, 2026
Merged

hotfix: serve /llms-full.txt as direct 200, not 307#603
Flotapponnier merged 1 commit into
mainfrom
hotfix/llms-full-txt-direct-200

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #602. Single-file change in /llms-full.txt route. Removes the 307 redirect that broke llms.txt validators and stricter AI crawlers.

The route was redirecting to /api/llm-context, which is fine for
permissive clients but breaks:
- llms.txt validators (llmstxt-checker fails on non-200)
- stricter AI crawlers (Perplexity, some Bing AI variants) that mark
  non-standard paths returning a redirect as no-content and skip
- canonical attribution (AI engines citing the body now point at the
  internal /api/llm-context path instead of the public /llms-full.txt)

Re-exports the GET handler from /api/llm-context so there is a single
source of truth for the markdown body. No content change.
@Flotapponnier
Flotapponnier merged commit 253c88c into main Jun 21, 2026
@Flotapponnier
Flotapponnier deleted the hotfix/llms-full-txt-direct-200 branch June 21, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant