maximize Cloudflare edge caching

This commit is contained in:
2569718930@qq.com
2026-06-10 19:11:58 +08:00
parent 081bf9cc05
commit 1494db8e09
18 changed files with 421 additions and 42 deletions
+1
View File
@@ -147,6 +147,7 @@ async def sse_events(
media_type="text/event-stream",
headers={
"Cache-Control": "no-cache, no-transform",
"Cloudflare-CDN-Cache-Control": "no-store",
"Connection": "keep-alive",
"X-Accel-Buffering": "no",
"Access-Control-Allow-Origin": origin if allowed else "https://polyweather.top",