Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for http caching and keep-alive #64

Open
3 tasks
jprochazk opened this issue Oct 23, 2024 · 3 comments
Open
3 tasks

Add support for http caching and keep-alive #64

jprochazk opened this issue Oct 23, 2024 · 3 comments

Comments

@jprochazk
Copy link
Collaborator

  • Client that the user can keep around
    • For native, this would wrap ureq::Agent, and use http-cache-semantics to handle caching
    • For web, it would delegate everything to fetch (which already handles caching), and hold on state of its own
@abey79
Copy link

abey79 commented Oct 24, 2024

I'm not 100% but walkers currently doesn't seem to have disk-based tile caching, so everything gets reloaded every launch of the app. It would be great to have that.

BIG CAVEAT: some tile providers (possibly including MapBox) may have restrictions in how a client is allowed to give access users to the raw tiles, or the maximum amount of map data that may be cached, or other such things designed to (legally) prevent scraping.

@emilk
Copy link
Owner

emilk commented Oct 24, 2024

This is very similar to:

@podusowski
Copy link

I'm not 100% but walkers currently doesn't seem to have disk-based tile caching

It has, you can enable it by setting a path where you want to store it:
https://docs.rs/walkers/latest/walkers/struct.HttpOptions.html#structfield.cache

BIG CAVEAT

Yes, there are plenty, at least on OSM servers: podusowski/walkers#104

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants