1

I can't update my Sencha Touch webapp without having to clear the browser cache to make the new version work. If I don't clear the cache manually, I get this error :

Error evaluating http://localhost/alpha1/app.js with message: SyntaxError: Unexpected token ,

Once I clean te cache, it works perfectly. Where could the problem come from ?

Cherif
  • 5,223
  • 8
  • 33
  • 54

1 Answers1

2

Set the update property for app.js to full in app.json:

{
    "path": "app.js",
    "bundle": true,  /* Indicates that all class dependencies are concatenated into this file when build */
    "update": "full"
}
Darin Kolev
  • 3,401
  • 13
  • 31
  • 46
  • Thanks for your answer. Do you know how to configure the generation of the cache.appcahe file by sencha cmd ? – Cherif Oct 14 '13 at 15:58
  • By default, only index.html is put under CACHE MANIFEST. I would like to add app.js without having to do it manually after every build – Cherif Oct 14 '13 at 16:01