NextFaze / ionic-manup

Mandatory Update for Ionic
MIT License
52 stars 27 forks source link

Cache issue #17

Open yatingodse opened 7 years ago

yatingodse commented 7 years ago

I am using this module in my ionic app , but once the first hit to URL happens it caches the data. so next time even if i change the file on the server it does not pick up the latest files. what is the cache duration ? Is there anyway to disable the cache ?

MichaelMarner commented 7 years ago

ManUp currently isn't performing any caching. The service falls back to local storage only in the case that the remote file couldn't be fetched (ie you are offline).

Can you have a look at the network requests in Safari/Chrome's remote devtools and verify whether the network request is being made? If it is, what HTTP code is being returned by your sever?

Thanks

phieudu241 commented 6 years ago

I got the same problem on Android. It seems that it is the cache of default browser and we need a solution to avoid that.

widimiras commented 6 years ago

I think in the code you can add option for clearcache and clear sessioncache to clear cache in inappbrowser. Please update your code with additional option so we can add any option in inappbrowser if we want additional optional setting in inappbrowser for our update Thanks

MichaelMarner commented 6 years ago

in app browser is not used to grab the version information though, only to link out to the app stores. Am I misunderstanding?

sckumar commented 4 years ago

I also faced the same issue then realised manup.json is being downloaded from github and github raw file uses cache (300 seconds). Cross check whether the json file updated properly.