• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Dealing with browser cache/history when app changes are made

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dealing with browser cache/history when app changes are made

    Is there a way to force the browser to use the files on the server rather than trying to use the cache?
    When I make changes to apps, especially on "public" sites, sometimes the app won't load because the app.js or index.html etc has changed...

  • #2
    If using Ext 4 and the app is not built, you can set the loader as follows:

    Code:
    Ext.Loader.setConfig({
        disableCaching : true
    });

    Comment


    • #3
      what do you mean by "and the app is not built" ?

      Comment


      • #4
        He means if you are just publishing your app as a series of .js files and not using Sencha Cmd or the Sencha Architect build tools to "build" your app.

        Comment


        • #5
          Ah.. ok.. thanks! I should have remembered that from the Advanced Techniques class... Too many Margaritas ago i suppose.... :)

          Comment


          • #6
            Hi,

            Do you the same thing in Sencha Touch 2.3?

            Do you then just leave that code in there? Will this mean the app is always loaded from the server and never from cache?

            Comment

            Working...
            X