1

I created a build file for use with the Spring Framework with webpack. The generated file is "... /webapp/resources/js/build.js". The problem is that the changes in the JS file have not been reflected in the browser despite the changes.

For example, changes are not reflected when I press F5 in browser. How can I reflect changed js file? I want to ensure that the js file is not cached in the browser to reflect that js has changed. How do I clear the cache?

Super Hans
  • 128
  • 2
  • 11
user3736174
  • 333
  • 2
  • 3
  • 16

1 Answers1

4

I was having a similar problem and I found ignoring the cache or clearing browser cache to do the trick.

Ignoring the cache: hit ctrl + F5 to refresh page ignoring the cache.

Clearing the cache: hit shift + ctrl + delete will bring you to a screen where you can select the option to clear cached images and files.

You should now see the changes you made to your JavaScript file.

Super Hans
  • 128
  • 2
  • 11