Two simple questions...
I built my app using the latest version of Sencha Cmd with "sencha app build production". It works fine, but not when offline.
Question 1:
Do I have to specify all files to be cached in the appCache property of my app.json file, to have the application cache manifest file properly generated?
Or just specify the .js and .css assets, and the .appcache file should be auto generated?
Is this different between delta and full update mode?
Question 2:
My app did not work offline, so I changed the update mode from "delta" to "full" in the app.json file. Thinking that users who had the older version of my app locally cached on their device would then get a full update, which I think is ok for a very small app.
Next, I deleted the "builds" and "archives" folders from my local development folder and from the server. After that I generated my app again and uploaded it to the server, All files on the server were overwritten. It's still not working offline though.
Should this work or do I have to generate a new project, because I have broken the delta update cycle (which sounds evil anyway)?
My original app.json file:
Code:
{
"name": "myappname",
"indexHtmlPath": "index.html",
"url": null,
"js": [
{
"path": "touch/sencha-touch.js",
"x-bootstrap": true
},
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "delta"
},
{
"path": "anotherfile.js",
"update": "delta"
}
],
"css": [
{
"path": "resources/css/app.css",
"update": "delta"
}
],
"appCache": {
"cache": [
"index.html"
],
"network": [
"*"
],
"fallback": []
},
"resources": [
"resources/images",
"resources/icons",
"resources/startup",
"favicon.ico"
],
"ignore": [
"\.svn$"
],
"archivePath": "archive",
"id": "114162dd-cacf-48ea-98ba-1f7ee645a0c3"
}