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

Support timestamp based cachebusting in more endpoints #393

Open
andrewharvey opened this issue Aug 2, 2020 · 0 comments · May be fixed by #394
Open

Support timestamp based cachebusting in more endpoints #393

andrewharvey opened this issue Aug 2, 2020 · 0 comments · May be fixed by #394

Comments

@andrewharvey
Copy link
Collaborator

Some of the Styles endpoints support the fresh=true parameter to ensure we are retrieving the latest style information.

It doesn't seem like this parameter is supported with the Datasets API, however it appears the API can sometimes suffer from returning outdated data.

Mapbox Studio appends a date based cachebuster in the form &_=UNIX_TIMESTAMP.

If Mapbox Studio is doing this it must be a reasonable approach and hence we should extend this to all SDK consumers and support it.

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

Successfully merging a pull request may close this issue.

1 participant