Skip to content

fix(headers): UTF-8 named on index.md, llms.txt and robots.txt, and release 1.10.1 - #18

Merged
anaidenko merged 1 commit into
mainfrom
fix/text-charset
Oct 9, 2026
Merged

anaidenko merged 1 commit into
mainfrom
fix/text-charset

Conversation

@anaidenko

Copy link
Copy Markdown
Owner

In production /index.md came as "text/markdown" with no charset, so a browser read its UTF-8 as
Windows-1252: "Master’s" showed as "Master’s", and every ’, — and · alike. The route handlers
name "charset=utf-8", but the static export keeps only the file, and the host types it by its
extension. llms.txt and robots.txt were served the same way. public/_headers now sets each one's
Content-Type, which reaches both hosts.

wrangler dev adds the charset itself, so the e2e tests passed before and after the fix and could
not see it. A unit test ties every text route in src/app to its rule in public/_headers (red
first: three rules missing), and the testing rules say so.

Checks on this tree: format, lint, types, 273 unit tests, e2e 220 passed and 12 skipped.

…elease 1.10.1

In production /index.md came as "text/markdown" with no charset, so a browser read its UTF-8 as
Windows-1252: "Master’s" showed as "Master’s", and every ’, — and · alike. The route handlers
name "charset=utf-8", but the static export keeps only the file, and the host types it by its
extension. llms.txt and robots.txt were served the same way. public/_headers now sets each one's
Content-Type, which reaches both hosts.

wrangler dev adds the charset itself, so the e2e tests passed before and after the fix and could
not see it. A unit test ties every text route in src/app to its rule in public/_headers (red
first: three rules missing), and the testing rules say so.

Checks on this tree: format, lint, types, 273 unit tests, e2e 220 passed and 12 skipped.
@anaidenko
anaidenko merged commit 357e463 into main Oct 9, 2026
1 check passed
@anaidenko
anaidenko deleted the fix/text-charset branch October 9, 2026 22:35
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