-
20 Sep 2012 9:39 PM #1
iOS6 Caching Post requests also
iOS6 Caching Post requests also
I've spent last 3-4 hours pulling my hair as some of our sites/ sencha touch apps have stopped working properly. On further investigation and search on the internet, found out that iOS 6 - Safari seems to be caching POST requests also. Here is a small fix I did for connection request to add the caching parameter on POST requests also in Sencha Touch:
Code:Ext.define('Df.data.Connection', { override: 'Ext.data.Connection', setOptions: function (options, scope) { var result = this.callOverridden(arguments); result.url = Ext.urlAppend(result.url, (options.disableCachingParam || this.getDisableCachingParam()) + '=' + (new Date().getTime())); return result; } });
-
20 Sep 2012 9:47 PM #2
This seems to have started with the GA release. Up to beta4, everything was working fine.
-
21 Sep 2012 6:23 AM #3
Same issue and fix as well.
-
4 Oct 2012 3:40 AM #4
Same issue, override suggested works for me too.
There is lots on iOS 6 and caching post requests with a quick Google! Hopefully they will bring out an iOS patch some time soon.
-
4 Oct 2012 4:49 AM #5
came here to report the same thing. Thanks for the fix.


Reply With Quote