2

Phonegap 2.1 iOS 6 jQuery 1.7.2 JQMobile 1.1.1

I have a phonegap app that seems to be caching old data from ajax responses if I don't use the app for a few days. I have to reinstall the app to clear it. I found a fix for the app itself but that would require re-publishing. It connects to a .NET WCF REST service, is there a way to just turn off caching on that end? I don't have outputCache in the webconfig at all so it may be on by default.

Jason
  • 367
  • 6
  • 18

1 Answers1

0

You may also append a random number as a query parameter to your AJAX request URL to force the cache to update i.e. https://example.com/request.asp?timestamp=02347892378.

Zorayr
  • 23,770
  • 8
  • 136
  • 129