protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.11k stars 125 forks source link

Expected? Multiple range requests per pageload #468

Closed TheMapSmith closed 1 month ago

TheMapSmith commented 1 month ago

Hey Brandon, I'm debugging some performance issues for a client and I noticed something interesting in the network panel and I want to confirm whether this is expected or not.

We have a few PMTiles layers in a map. When watching the requests, there are around a dozen requests per PMTiles file.

image

I'm guessing that this is because each request needs a different byte range. A sample of the response headers:

Is this the intended behavior, or do we need to adjust our implementation?

bdon commented 1 month ago

that is correct, each tile is a separate range request and downloaded independently.

TheMapSmith commented 1 month ago

Good to know 👍

Hopefully, this issue will help any folx in the future who are curious about this as well 😄