Reputation: 21661
I'm working on an ASP.NET Core/Angular project. I don't understand why browsers are not pulling the last version of my JavaScript. Yet when I look at the output folder (wwwwroot/ClientApp/app), all the JavaScript files and their corresponding map files are up to date.
I've pressed Ctrl + Refresh to force browsers to request newer version, but nothing is happening. They still have the older versions. Same is true with the HTML.
The MVC part works just fine, i.e. any change is being reflected by the browser.
What else can be done to push browsers to refresh the pages?
Upvotes: 1
Views: 672
Reputation: 7348
This is a common issue with HTML files especially -
While in development, you can set the browser to disable the cache when dev tools are open
1 - Right Click Inspect element OR Ctrl + Shift + I
2 - Go to settings
3 - Disable the cache when Dev Tools is open
you could also see if the checkbox is checked under network tab Also you can disable the cache under Network tab to force a refresh
after disabling the cache keep Dev tools open and refresh the page
Upvotes: 3
Reputation: 1298
remove your browser cookies and cache, or try this: use another browser change app url or port so the browser will retrieve a fresh resources
Upvotes: -1