Why sometimes, when I launch my Add-In Word via Visual Studio, it does not take into account the changes I made in Javascript?

Sylvain Cornut 6 Reputation points

Hi !

It happens that when I make a change in a .js file and run the application with a debugger, I find that it calls the "old" .js file without the changes. I thought about a cache problem and found several solutions on the internet but nothing solves my problem.

  • I downloaded the Microsoft Edge DevTools, and I clear the cache right there.
  • I have already tried going to directly delete the cache in my files :
  • ---> %LOCALAPPDATA%\Microsoft\Office\16.0\Wef\
  • ---> %userprofile%\AppData\Local\Packages\Microsoft.Win32WebViewHost_cw5n1h2txyewy\AC#!123\INetCache\
  • ---> %USERPROFILE%\AppData\Local\Microsoft\VisualStudio\16.0_03ac6d94\ComponentModelCache
  • I updated Office, Visual Studio and Microsoft Edge.
  • I added this code in my web.config :
       <location path="Home.html">
                    <add name="Cache-Control" value="no-cache" />

Thank you in advance for your help !

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
910 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,637 questions
0 comments No comments
{count} votes