0

I am developing a web addin for MS Word.

The documents that load in the Script Documents section of VS when running the project is loading cached version of my JS files.

Things I have tried

  • Clear and rebuild the solution.
  • Removing IIS web sites via cmd clearing IISExpress cache
  • Deleted the cache in IE as per another thread I read, I've lost the link for that one.
  • Renamed the JS files and referencing the new ones in the html but then they didn't appear in the Scripts Documents so I am assuming the HTML file is cached as well.
  • Deleting all the temp files in my APPDATA, delete IIS Express sites, clean, restart computer, clean again, rebuild, run and still my old JS file, without the changes, comes up for debugging.

How can I clear the cache in the Word add in so that it is forced to pull new JS version.

So far the only consistent thing is to wait some long period of time and then the changes to the JS file are reflected.

Cindy Meister
  • 24,375
  • 21
  • 34
  • 43
russelrillema
  • 435
  • 7
  • 14
  • Open chrome's developer tool & then right-click on the reload button of the browser. Press Empty Cache & Hard Reload. – Ankush Jain Oct 23 '19 at 12:13
  • @AnkushJain I am talking about an MS Word Web Addin. It loads inside of MS Word not inside of chrome. Are you suggesting that doing that on a blank tab in chrome would resolve the caching issue in MS Word? – russelrillema Oct 23 '19 at 12:51
  • In case someone else ends up here my word around at the moment is to comment out all of the interactions with the word document it's self and simply debug in Chrome. Luckily my use case interacts with the document very little and the biggest part of the plugin is getting the data from my API. Once I have that all working I will put the word stuff back in and test in word itself. – russelrillema Oct 24 '19 at 04:24

0 Answers0