
10/10/2018 · Guest Author
What this post added
This post details the implementation of a multi-tier object storage strategy for hosting Leaflet maps, leveraging Cloudflare Workers to serve tiles from Google Cloud Storage (for low latency, high-access tiles) and Backblaze B2 (for cost-effective, lower-access tiles). It also describes using Workers for path rewrites and redirects, and applying Cloudflare Argo for non-US/CA users to reduce latency to Backblaze B2. The post includes code examples for implementing the multi-tier fetching logic and conditional Argo routing, as well as a method for tracking subrequest origins (GCS vs. B2) via StatHat.