I recently made a website and I made a change to a .js file, but when I delete the .js file from the FTP server and upload the new one, the new file doesn't show up on the website. I checked the source code behind the .js file on the website and it's not right, it's showing the source for the old file, not the new one even though the old one is gone. Is that because my browser cached the .js file?
Note: I have this source
<meta http-equiv="cache-control" content="no-cache" />
on my page to stop the browser from caching my page, and I know that works on the HTML, but with that source there, do the resource files still get cached?
I don't have that line of code on my other pages, just my home page, but the .js file is still referenced on the other pages so perhaps that is how it is getting cached?
Furthermore, is there a way to check your browsers cache? I use chrome.
Edit: I just cleared my browsers cache and reloaded the website and the file worked as it should now, so that means the file did get cached. So now my question becomes how to I prevent a resource file from being cached?