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
@@ -28,6 +28,7 @@ export function buildCachedJsonResponse(
const etag = buildEtag(body);
const headers = new Headers({
"Cache-Control": cacheControl,
"Cloudflare-CDN-Cache-Control": cacheControl,
ETag: etag,
"Content-Type": "application/json; charset=utf-8",
});