Support timestamp based cachebusting in more endpoints
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 768
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the SDK builds requests for the Styles and Datasets APIs, comparing existing fresh=true handling with Mapbox Studio’s _=UNIX_TIMESTAMP form. Done means timestamp-based cachebusting is supported consistently for the intended endpoints and prevents stale data responses.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100