Results 1 to 2 of 2

Thread: Call SDK's refresh(); to download changed files to app cache programmatically

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    24
    Vote Rating
    1
      0  

    Default Call SDK's refresh(); to download changed files to app cache programmatically

    I am using Sencha Touch 2's methodology for storing files in the app cache for offline use--works fine. However, I have a use case where I would need to call refresh() in the SDK's production.js file (which normally is minified on a sencha production build and insterted into index.html) via my code at times. Is there an easy way to do this?

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    You shouldn't need to do this yourself. The browser should check if there is a change to any file in the cache.manifest when you go to the app with the browser every time.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •