Pre-fetching byte-range requests #3
Closed
daniel-j-h
started this conversation in
General
Replies: 1 comment 3 replies
|
Pre-fetching generally isn't a great solution because you don't know in advance how the user will behave interactively. I don't recommend using cloud front to cache byte ranges, CDNs are inconsistent with how they deal with 206 Partial Content. The Lambda solution https://protomaps.com/docs/cdn/aws is the best way to glue Cloudfront and S3 together. |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hey folks I just learned that Cloudfront doesn't cache or retrieve files of more than 30 GB. It does however cache individual smaller byte-range requests.
With a S3+Cloudfront setup hosting e.g. the >100GB planet pmtiles this results in
This makes me think
With prefetching I mean queuing up byte-range requests e.g. for zoom levels lower/higher (use case: map zoom in, zoom out) or neighboring tiles (use case: map panning). Would prefetching have to happen in maplibre-gl itself (where I haven't found a good answer)?
References
All reactions