mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
* Simplifies ETag logic into Source, making if-match conditional requests possible. * Avoid if-match in FetchSource for latency reasons - use cache buster on ETag change * handle weak ETags correctly * add mock fetch server for testing ETags [#90]
Protomaps on Cloudflare
See installation and configuration instructions at Protomaps Docs: Deploy on Cloudflare
Development
Web Console (basic)
Generate the Workers script using npm run build and copy dist/index.js to the editor.
Wrangler (advanced)
The preview_bucket_name value in wrangler.toml should be changed to your bucket used for development.
Run npm run start to serve your Worker at http://localhost:8787. The cache will not be active in development.