Http requests return same results!


#1

Hi,
I have an ionic 3 app which calls an external api. I called my api and it returned some results. I changed the api and changed the results. However, my ionic app, returned the same results over and over again. I had to uninstall my app and install it again to get it to work properly. What is causing this?


#2

uninstall from what?


#3

you have disable http request caching.


#4

Uninstall from the device and install it again.


#5

How?
Will this work?

$http.get(api,{ headers: { 'Cache-Control' : 'no-cache' } })

#6

Use Chrome’s developer tools’ Network tab to see what is going over the wire.