Results 1 to 5 of 5

Thread: Cannot disable the disableCache mechanism - app does not run offline

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
      0  

    Default Cannot disable the disableCache mechanism - app does not run offline

    The first lines of my app.js read:

    Code:
    Ext.Loader.setConfig( {enabled: true, disableCaching: false} );
    Ext.data.Connection.disableCaching = false;
    Ext.data.JsonP.disableCaching = false;
    Ext.data.proxy.Server.prototype.noCache = false;
    Ext.Ajax.disableCaching = false;
    The app compiles to the production version without errors or warnings. It loads and runs from the server. When I try to run it offline in Chrome, those errors occur





    which indicate that the timestamp of the disableCache parameter is appended to the GET requests. Therefore the application does not load offline. It hangs at the "Application is being loaded..." screen. How can I enable caching and avoid this _dc parameter?

    The SDK version is 2.0.1.1

  2. #2
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    623
    Answers
    67
    Vote Rating
    29
      0  

    Default

    Probabl everything related to disable cache should be true not false.

  3. #3
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by bluehipy View Post
    Probabl everything related to disable cache should be true not false.
    Think again. I want to enable the cache, so everything related to its disabling should be false.

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    It looks like the classes that you have an error on did not get built into the build. Did you require it?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Jan 2012
    Posts
    9
    Vote Rating
    0
      0  

    Default

    No, the missing class was not required explicitly.
    Though it is listed in app.json under the keys /js/path and under /appCache/cache.
    Now I explicitly included it in Ext.application({requires:"..."}) where it is the only entry. The other classes are loaded implicitly.
    The error remains the same.
    --- update
    Meanwhile I included the whole code of Override.slider.Slider in app.js (urrghh) and purged any reference to the file. Now the app does work offline. But the console log in Chrome still shows this entry
    GET http://blasentagebuch.de/m/app.json?1346932076018
    I still do not understand why the timestamp parameter is appended to the file name, anyway, though I set disableCaching to false in app.js.
    Last edited by smantscheff; 6 Sep 2012 at 3:53 AM. Reason: Update on problem status

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •