问题
I have a website with a domain and host. I sometimes change some pages and upload them via FTP (I'm using FileZilla). Tough, when I enter the webpage from the domain, the latest changes doesn't appear. I have checked many times the html
files I've changed and they all look correctly uploaded to the host. But when I save the html
page and check its code, the changes doesn't appear as expected. Why are the changes aren't being updated when browsing the webpage and how can I solve this?
回答1:
Try refreshing the page using CTRL+F5, if it's not working, clean browser cache.
回答2:
Clean your browser Cache or try opening a private navigation window.
回答3:
Your Browser will Cache files so it doesn't have to load them every time. Usually refreshing will solve the issue but a surefire way is to enable the "disable browser cache" option in Chrome's dev console (firefox may have something similar).
When you open the dev console there is a gear in the upper right that opens the options menu. In the "General" tab the "Disable cache (while DevTools is open)" option is available. after enabling this just refresh the page with the console open and it will download all of the latest files from your server.
来源:https://stackoverflow.com/questions/24853367/webpage-doesnt-update-after-changing-files-via-ftp