Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    Oct 2007
    Location
    Herndon, VA
    Posts
    265
    Vote Rating
    3
    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
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      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
    523
    Vote Rating
    43
    BostonMerlin is a jewel in the rough BostonMerlin is a jewel in the rough BostonMerlin is a jewel in the rough

      0  

    Default


    Same issue and fix as well.

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Posts
    411
    Vote Rating
    2
    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.