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
In modern browsers when you request an image if the browser supports webp it will add this to the request accept header, so if the server supports serving different content based on the client support it can.
However, when making a Fetch or XMLHttpRequest, the browser will pass */* as the accept header, in which case the server won't know if the client supports webp or not.
In modern browsers when you request an image if the browser supports webp it will add this to the request accept header, so if the server supports serving different content based on the client support it can.
However, when making a Fetch or XMLHttpRequest, the browser will pass
*/*
as the accept header, in which case the server won't know if the client supports webp or not.Mapbox raster sources have built in logic at
mapbox-gl-js/src/util/mapbox.js
Lines 96 to 110 in f5c2ae0
I've drafted a PR to address this at #8262
The text was updated successfully, but these errors were encountered: