Hello developers,
When I was working on password generator website using PHP, I connect the main.js file to the index file and everything is okay and it works, but when I close the device and reopen it and open the project any change in the javascript file does not affect on the index file and when I open the inspect and see the sources the main.js file is constant at the code before I turn off the device, then I change the name of js file and reconnect it to the index.php and it works, and the question here WHY this happened?
I wish anyone help me because in real life I will not change the name of the files everyday.
NOTE: my OS is Ubuntu.
Thank you.