Last post Jun 14, 2020 02:44 PM by CincySteve
Jun 13, 2020 08:22 PM|CincySteve|LINK
I am using VS Community 2019 v16.6.2 with AspNetCore v3.2.0 and checked the Progressive Web Application setting when I created the app. The TS generated and native JS code is in a a folder called js within the wwwroot folder and the following html statement
is in the <body> of the html in the index.html file: <script src="js/myJSCode.js"></script>.
how I can do a "Hard Reload" by holding a click on the Chrome refresh icon. That fixes the problem. But surely I won't have to do that every time I change my code, especially during my learning phase. Isn't there a way to force a Hard Reload on every Build,
or at least a code replacement when code has been changed?
Is there something I need to do to get the revised code to replace the prior code when running the debugger?
Jun 13, 2020 10:58 PM|bruce (sqlwork.com)|LINK
In chrome, turn off caching when in debug mode. Then f5 will reload any changes.
Jun 14, 2020 02:44 PM|CincySteve|LINK
Thanks, Bruce. I looked previously for a way to do what you suggested, which led me to checking "Disable cache (while DevTools is open)" in the DevTools' Network Settings. But that didn't do the trick (as I feared it might not since I wasn't sure if DevTools
is technically open during my normal debugging). So, I'm embarrassed to ask, but can you point me to how to do what you are suggesting, or is that it?