1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Answers
    1
    Vote Rating
    1
    Ritesh.Chopade is on a distinguished road

      0  

    Default Unanswered: How to cache remote resouces in production build

    Unanswered: How to cache remote resouces in production build


    Hi,
    How to cache remote resouces in production build?
    Means my JSON feed in stored on a remote server & it contains some assets like images in it (in JSON feed).
    My requirement is to cache the JSON feed as well as the assets that the JSON feed contains when I create the production build.

    Also is there a way to refresh these cached resources?

    My remote data is not changing frequently, that's why I want this behavior. And refresh if the remote data is changed

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,632
    Answers
    3452
    Vote Rating
    817
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    If you create your app with Sencha Command (which I would highly suggest always using) then open up app.json and you will see an appCache property in that json file. This is used to generate the cache manifest file.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1