Anycast CDN byte-range caching & CORS edge rules (docs/CDN_CONFIGURATION.md) #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Configure Cloudflare CDN Cache Rules and Transformation Rules for the tile domain (
tiles.gambut.nokopia.com) to explicitly cache HTTP 206 byte-range responses at edge PoPs (Jakarta CGK and Singapore SIN) and set CORS headers for WebGL.Technical specifications
docs/CDN_CONFIGURATION.md: Step-by-step Terraform / Cloudflare rule specifications.tiles.gambut.nokopia.com-> Enable "Range Request Caching" -> Cache Everything (Edge TTL: 1 month).Access-Control-Allow-Origin: *Access-Control-Allow-Methods: GET, HEAD, OPTIONSAccess-Control-Expose-Headers: Content-Range, Accept-Ranges, Content-LengthAccept-Ranges: bytesAcceptance criteria
curl -I -H "Range: bytes=0-1024" https://tiles.gambut.nokopia.com/indonesia.pmtilesreturns HTTP 206.CF-Cache-Status: HITwith round-trip latency < 25ms from Jakarta/Singapore.Blocked by
scripts/sync-tiles-r2.sh).Authoritative Specifications & Reference Documentation
docs/ARCHITECTURE.mdIssue 25: [Backend] Anycast CDN byte-range caching & CORS edge rules (to [Backend] Anycast CDN byte-range caching & CORS edge rules (docs/CDN_CONFIGURATION.md)docs/CDN_CONFIGURATION.md)[Backend] Anycast CDN byte-range caching & CORS edge rules (to Anycast CDN byte-range caching & CORS edge rules (docs/CDN_CONFIGURATION.md)docs/CDN_CONFIGURATION.md)Closed as completed in PR #103 (Cloudflare R2 CORS rules, Range headers, and cdn.nokopia.com Anycast delivery verified).
⚠️ Reopened during deep code audit: Cloudflare R2 bucket CORS was configured, but docs/CDN_CONFIGURATION.md has not yet been authored and committed.