Angular Application files being cached by the browser

时间:2018-10-02 09:13:43

标签: angular iis browser angular5

I have got an issue with an Angular 5 application. For some weird reason the browser does not fetch the new version of the files even though the files have been hashed automatically by default by the webpack configuration.

The following pictures depicts the issue:

This is the chrome console showing the files used by the app, even when refreshing the page multiple times:

enter image description here

The following picture shows the files on the server:

enter image description here

As you can see my main.{hash}.bundle.js file is different from the one the browser has. How is that possible that the browser does NOT identify there are new files with a different hash names on the server? Any idea what the problem is? I would appreciate any help .

0 个答案:

没有答案