Clear cache after update

Thread is closed for posting
2 posts, 0 answers
  1. Robert
    Robert avatar
    20 posts
    Member since:
    Sep 2010

    Posted 26 Mar 2015 Link to this post


    I'm not entirely sure what's going on here, hard to troubleshoot as it's intermittent and happening only on users' devices, but I'm finding when we release a significant update to the app stores, we invariably get reports of random issues, errors and crashes which are invariably resolved by telling the user to restart their device. While this solution might be effective it hardly looks professional! Is there any way we can resolve this? I don't know a great deal about the inner workings of Cordova but it seems to me that the runtime is caching some of the JS files. I've tried appending a version number as a query string to the includes (e.g. script.js?v=10) which seemed to work for Android but Windows Phone doesn't support this technique.

    Is this a common problem? Is there a better solution than telling users to restart their devices after every update?


  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 31 Mar 2015 Link to this post

    Hi Robert,

    This scenario isn't expected with Cordova apps, since installing an update deletes the old files and installs completely new ones. We have not received other reports like this one, so we would need more information to be able to guess what is causing the problem. Could you confirm that this happens on both Android and WP devices? Do you notice any pattern in the devices make and model or OS versions? Also, do you distribute these apps in the public stores and do you by any chance reference any scripts/styles from a CDN instead of using local ones? 


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top