mapbox - Why mapboxgl api returns 304 status code? -
i getting http code 304 status code map box api request in ios application. works in browsers such chrome, safari, firefox getting 200 code. works in android.
https://api.mapbox.com/styles/v1/mapbox/streets-v9?access_token="my token"
the 304 status code stays "not modified" meaning device (e.g. browser or ios app) recognizes content present. means cached , can served there , not need downloaded again. status 304 not "a bad thing" or "wrong", describe in question.
i guess 304 in ios app because don't have caching disabled in browser developer tools might have ticked "disable cache" box. fresh , new 200 responses. if uncheck box see status 304 there too
you might wanna take more in depth here: https://httpstatuses.com/304
Comments
Post a Comment