Learn how to build, secure, and deploy a Cloudflare Workers API in 12 steps, with Wrangler, KV, Durable Objects, rate ...
When running a community, you run into the problem of requests and ideas from members getting lost. Even if they write them in a channel, they end up at the bottom of the past logs after a few days.
fetch-event-source 则不同。 它内部用 fetch 发请求,所以理论上你可以传 method: 'POST' 和 body 。 这在某些场景下非常有用,比如服务端需要用请求体里的参数来决定推什么数据,但又不想把这些参数暴露在 URL 和日志里。