This is a migrated thread and some comments may be shown as answers.

[Solved] Icenium Ion and Caching

2 Answers 73 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Robert Sprague
Top achievements
Rank 1
Robert Sprague asked on 28 Nov 2012, 03:43 AM
I'm sure that I'm showing my green mobile development skills, but is there a reason why Ion would be caching the result of a JSON webservice? 

I've got a pretty simple call to a webservice that just fires an alert with the result.  I updated the webservice on the remote domain to return different text.  My android device gets the new text, as well as all of the simulators, but my wife's iphone is still returning the original text.

2 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 28 Nov 2012, 08:15 AM
Hi Robert,

 Are you running iOS 6 and making POST requests to your web service? Apple introduced a regression in their HTTP stack in iOS 6 where responses to POST requests are cached, even though the spec says they are to be cached only when a certain set of response headers are present.

 If you're running iOS 6 and making POST requests, could you please try to modify your web service to return the Cache-Control and Pragma headers set to 'no-cache'?

Regards,
Yavor Georgiev
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Robert Sprague
Top achievements
Rank 1
answered on 29 Nov 2012, 04:10 AM
That was it.  Thank you for the suggestion and prompt response.
Tags
General Discussion
Asked by
Robert Sprague
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Robert Sprague
Top achievements
Rank 1
Share this question
or