Results 1 to 2 of 2

Thread: How to cache remote resouces in production build

  1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    23
    Answers
    1
    Vote Rating
    1
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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 @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

Posting Permissions

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