Imatch not recognizing changes to script - suspect it caches some old version?

Started by ubacher, June 19, 2017, 06:11:17 AM

Previous topic - Next topic

ubacher

I have a script which runs OK when run from Chrome.
The same script when run out of Imatch seems to run an older version - it does not pick up changes I made.

I must say that I keep the script in a separate file using <script src="/user/panoset-to-ice/panoset-to-ice.js">  </script>

Changes in the index.html file are picked up and shown, changes to the included .js file are not picked up.

Note that in Chrome one needs to set Disable cache (under the network tab) in order that it picks up changes made externally.
This makes me think that Imatch also somehow keeps the .js file in cache.

Anyway: I am stumped.



Mario

When you reload an app via F5, Ctrl+F5 or the Reload button IMatch instructs Chromium to reload without cache. Sometimes this is ignored. Hot reloading (reloading an app while the programmer fiddles with the code) is a shaky subject. What always helps is to close IMatch and restart it. Or to just run your script in an external browser with a hard cache-.disable while you are working on it.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

QuoteWhat always helps is to close IMatch and restart it

I tried this but it (at least once) did not help. Which puzzled me no end.

Mario

Worked here always, over all the months I've created the sample scripts. Sure that you changed in the right place?
You can configure IMatch to delete the cache at program exit (E > P > Application), for extra "no cache".
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

Now I have a case of the chrome based version not showing the latest index.html.

I have tried opening and closing Imatch and Chrome - no use. I am stuck. I can't debug my script.

(I will try reboot the system.)

Mario

When you have disabled caching in Chrome (Net tab) Chrome will not cache anything at all.
And when you configure IMatch to delete the cache on exit, nothing can be cached.

Check the Net tab in Chrome and make sure that the files you think are loaded are loaded.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

Rebooting solved the problem. Haven't had any problems of that kind today.
Hope it stays that way.