You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cacheGet method calls back to validateOrFetch with a null error if window.caches is not available. From what I can tell, this could happen when the Cache API is not available at all or if a page is served over http and the Cache API is not usable.
The
cacheGet
method calls back tovalidateOrFetch
with anull
error ifwindow.caches
is not available. From what I can tell, this could happen when theCache
API is not available at all or if a page is served overhttp
and theCache
API is not usable.mapbox-gl-js/src/util/tile_request_cache.js
Lines 72 to 81 in dd5dcd0
In this case
validateOrFetch
still calls clones the response and attempts to place it in the cache.mapbox-gl-js/src/util/ajax.js
Lines 127 to 131 in dd5dcd0
If it is known that
window.caches
is no available or usable, there is not need to clone the response or to load its contents:mapbox-gl-js/src/util/ajax.js
Lines 144 to 152 in dd5dcd0
The text was updated successfully, but these errors were encountered: