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

jquery post requests cached

2 Answers 26 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.
Mat-Moo
Top achievements
Rank 1
Mat-Moo asked on 21 Dec 2012, 03:08 PM
Got a screen where users can enter a postcode (zipcode) then click a button to find closest merchants. Even though I'm changing my server code and it all works in the simulator, on my ipad, when I "alert" the returned data, it seems to be showing cached data? How can I force this to not cache/update it?

2 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 21 Dec 2012, 06:32 PM
Hello Mat-Moo,

 The HTTP stack in iOS 6 caches responses to POST requests unless the response contains the Pragma and Cache-Control headers both set to "no-cache".

 You will need to modify your service to return those two headers.

Greetings,
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
Purple
Top achievements
Rank 1
answered on 02 Jan 2013, 04:57 PM
Thanks!
Tags
General Discussion
Asked by
Mat-Moo
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Purple
Top achievements
Rank 1
Share this question
or