7 Replies Latest reply on Apr 18, 2017 4:36 PM by Liam Dilley

    How to stop BC Apps caching JS files in Manage view.

    Russ @ Red Lab Level 1

      I'm building an App.  The ~/System/Apps/my-app-name/index.html is calling a ~/System/Apps/my-app-name/assets/scripts.js file.


      The JS file has a very simple call to echo something in a <pre> element:

      Screen Shot 2017-04-14 at 9.24.36 AM.png

      It's supposed to be "Not cached."  It was "Failed" before I edited it.


      When viewing the app in the Manage view, the changes to the file are not shown.  It still shows "Failed":
      Screen Shot 2017-04-14 at 9.24.14 AM.png


      But if I access the file directly (https://my-domain.worldsecuresystems.com/_System/Apps/my-app-name/index.html?preview=True& showLatest=True)) it shows the changes to the JS file correctly:

      Screen Shot 2017-04-14 at 9.24.23 AM.png

      How do I prevent the Manage view from caching the JS file?