Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA 12.1.7 JavaScript file not updating when application runs

I am creating a Spring application that uses a JavaScript file that implements a date picker. When I first ran the page which contained the date picker I had made a syntax error on the function declaration which I fixed. However on running the application again the JavaScript file is not updating so the version of the file with the error is being run.

If it helps here is the code with the error:

$(function()){
       $("#createdTime, #expi").datepicker({
             dateFormat:  "d-m-yy"
       });
}

And here it is fixed:

$(function(){
       $("#createdTime, #expiryTime").datepicker({
             dateFormat:  "dd-mm-yy"
       });
});

The slightly different id "expiryTime" is correct according to my HTML.

I think this is an IDE issue but am not 100% sure. I tried to clear the cache but this did not make any difference. If it helps I am using Intellij IDEA 12.1.7.

like image 830
user1849060 Avatar asked Nov 03 '25 13:11

user1849060


1 Answers

In my case the problem was in chrome browser behavior. Try Developer Tools(F12) > Network > Disable cache.

like image 107
Adey Avatar answered Nov 05 '25 05:11

Adey