From fb211f728781b8328bd4aad3fc296a6b5665086c Mon Sep 17 00:00:00 2001 From: Brendan Dash Date: Sun, 20 Sep 2026 17:04:02 +0800 Subject: [PATCH] fix: add charset=utf-8 to .txt responses via _headers Cloudflare Workers Static Assets serves llms.txt, llms-full.txt and llms-small.txt with a bare `text/plain` Content-Type in production, while `wrangler dev` adds `charset=utf-8` locally. The files contain non-ASCII content (emoji, CJK), so clients that default to ISO-8859-1 render mojibake. Add a `_headers` rule so both match. --- public/_headers | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 public/_headers diff --git a/public/_headers b/public/_headers new file mode 100644 index 00000000..db3c64dc --- /dev/null +++ b/public/_headers @@ -0,0 +1,2 @@ +/*.txt + Content-Type: text/plain; charset=utf-8