-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[core] offline and cache policy #4350
Comments
/cc: @jfirebaugh and @danswick @cammace for documentation. |
Thanks for sending https://www.mapbox.com/blog/offline-mobile-maps/ but it's too generic and does not contain the responses for all the questions. |
@RomainQuidet Did you see https://www.mapbox.com/help/mobile-offline/? |
@jfirebaugh yes thanks, but I can't find the cache policy for expiration for example. it's quite generic. What about raster tiles too ? |
Raster tiles and non-Mapbox URLs are both supported. Revalidation follows the HTTP standard, using the |
Clarification on the above points is in the works for https://www.mapbox.com/help/mobile-offline/. |
@jfirebaugh Thanks for the clarifications.
On iOS 3.2.0-pre3, I can see the map using "cache.db" on init, and the offline storage creating "offline.db" file on the singleton init. Is it correct ? |
Yeah, that's a bug. Thanks for bringing that to our attention. Ticketed as #4362. |
@jfirebaugh as you mention on your last comment "There is no size limit or automatic eviction for offline resources". |
Currently removing a pack only marks the tiles for deletion but it doesn't immediately free up the space. To do that, you need to use separate APIs we've introduced recently and that you can see here: #14978 (there's a blog post and documentation updates coming soon that explain the usage of these new APIs in more detail). Meanwhile, for any additional questions about SDK usage, please reach out to Mapbox Support. We only use this repo for tracking issues with the SDK (feel free to cut a separate ticket if that's the case, thanks!). |
@zugaldia thanks for the answer. that's what i need for removing ambient caching from my device which i found in new version Mapbox SDK. |
I can't find any document about the cache and offline maps policies.
If there is no document, could you explain:
Thanks
The text was updated successfully, but these errors were encountered: