1. #1
    Ext JS Premium Member
    Join Date
    Oct 2007
    Location
    Herndon, VA
    Posts
    262
    Vote Rating
    1
    durlabh is on a distinguished road

      0  

    Default 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;
        }
    });

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,753
    Vote Rating
    113
    sven is just really nice sven is just really nice sven is just really nice sven is just really nice sven is just really nice

      0  

    Default


    This seems to have started with the GA release. Up to beta4, everything was working fine.

  3. #3
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    414
    Vote Rating
    34
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default


    Same issue and fix as well.

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Posts
    354
    Vote Rating
    1
    parky128 is on a distinguished road

      0  

    Default


    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.

  5. #5
    Sencha Premium Member intellix's Avatar
    Join Date
    Mar 2012
    Location
    UK + Malta
    Posts
    263
    Vote Rating
    18
    intellix will become famous soon enough

      0  

    Default


    came here to report the same thing. Thanks for the fix.