iOS 6 caching ajax requests

342 views
Skip to first unread message

Johan

unread,
Sep 21, 2012, 11:55:22 PM9/21/12
to ang...@googlegroups.com
Just tested on iOS 6 and it appears to be caching ajax requests.

Anyone got a good solution for this other than say adding some kind of time stamp to the request (have not tried yet but think it may work)

Johan

unread,
Sep 21, 2012, 11:56:59 PM9/21/12
to ang...@googlegroups.com
Seems setting cache control headers may be a way out:  http://stackoverflow.com/questions/12506897/is-ios6-safari-caching-ajax-results 

Johan

unread,
Sep 22, 2012, 12:10:41 AM9/22/12
to ang...@googlegroups.com
Update - Chrome on iOS 6 works fine, so seems its specific to Safari. Also seeing strange results with Safari due to cookies not being set/cleared as expected (auto login cookie)


On Saturday, September 22, 2012 3:55:23 PM UTC+12, Johan wrote:

Johan

unread,
Sep 22, 2012, 12:11:56 AM9/22/12
to ang...@googlegroups.com
See it is on Ars as well now:  http://arstechnica.com/apple/2012/09/developers-claim-safari-in-ios-6-breaks-web-apps-with-aggressive-caching/ 


On Saturday, September 22, 2012 3:55:23 PM UTC+12, Johan wrote:

Johan

unread,
Sep 22, 2012, 1:26:11 AM9/22/12
to ang...@googlegroups.com
Update: I got it sorted using the old random string / timestamp appended to URL method. Even worked for XHR file uploads which is now available in iOS 6.


On Saturday, September 22, 2012 3:55:23 PM UTC+12, Johan wrote:
Reply all
Reply to author
Forward
0 new messages