Open kkaefer opened 7 years ago
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
This is still a priority
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
In https://github.com/mapbox/mapbox-gl-native/pull/6176, we attempted implementing eviction of invalid resources from the cache. I still believe this is a valid feature. Invalid resources could end up in the cache in the following scenarios:
Our current workflow works like this:
This means that we cache the data before we know that it's valid/parseable. Subsequent loads will fetch the invalid data from the cache and fail at parsing again. Instead, we should remove this data from the cache, and attempt to re-fetch the data.
Possible caveats are: