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

enter image description here

you might wanna take more in depth here: https://httpstatuses.com/304


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -