Richard77
Richard77

Reputation: 21661

ASP.NET Core/Angular 2 - ts an HTML changes are not being reflected in any browser

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

Answers (2)

Dawood Awan
Dawood Awan

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

enter image description here

3 - Disable the cache when Dev Tools is open

enter image description here

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

enter image description here

after disabling the cache keep Dev tools open and refresh the page

Upvotes: 3

Roy Ryando
Roy Ryando

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

Related Questions