deepseek Bot ac1ab03b3d docs: attribute agent commits via --author instead of a trailer
Replace the Co-authored-by convention with an explicit --author value of the form "model name <model [email protected]>", so each commit records the model that actually performed it.
2026-10-27 06:04:41 +08:00

workerok

一个只接受 GET / HEAD 的 Cloudflare Worker:正常请求返回 Cloudflare 风格的 200 页面,其他方法返回 405。

行为

方法 状态码 响应
GET 200 text/html; charset=UTF-8,Cloudflare 风格页面
HEAD 200 与 GET 相同响应头,无 body
其他方法 405 text/plain,附带 Allow: GET, HEAD
  • 所有路径返回相同结果。
  • 页面中的 Host、Ray ID、时间、客户端 IP 取自当前请求;本地缺少 cf-ray 时自动生成。
  • 边缘机房城市取自 request.cf.colo(IATA 代码映射为城市名,未收录的代码原样显示);本地没有 request.cf 时显示 Unknown。
  • 响应均带 Cache-Control: no-store,避免缓存动态信息。

开发

pnpm install
pnpm dev        # 本地开发
pnpm typecheck  # 生成 Worker 类型并执行 tsc
pnpm build      # 构建
pnpm deploy     # 部署

页面来源

页面版式与样式移植自 donlon/cloudflare-error-page(MIT),详见 THIRD_PARTY_NOTICES.md。

本项目与 Cloudflare 官方无关,页面仅用于模仿其错误页风格。

Languages
TypeScript 100%