This question already has an answer here:
I have a
.js file stored on the
Site Assets library. Today I updated it (uploaded file of the same Name and replaced the old one).
But the new code seemed not to work. After lot's of debugging and Troubleshooting, I discovered that it was not the code the problem.
I opened the Developer Tools (F12), selected the console tab and from the drop-down menu I selected my
.js file which is linked to a library on the page. There I discovered the old code, before updating the file, which I found very weird.
Anyone encountered this before or have any idea why is that?
(I checked already the edit web part Options and the JSLink address is correct and also made sure the correct
.js file is on the
Site Assets library)