user26830
user26830

Reputation: 1079

Webpage doesn't update after changing files via FTP

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?

Upvotes: 3

Views: 15416

Answers (4)

Shereen Zehra
Shereen Zehra

Reputation: 1

Did you try running ng build before uploading the website to FTP? If your website is made on Angular then ng build is must to update the new changes. I got the same problem and ng build worked for me :)

Upvotes: 0

Nate
Nate

Reputation: 319

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.

Upvotes: 2

Cezar A
Cezar A

Reputation: 106

Try refreshing the page using CTRL+F5, if it's not working, clean browser cache.

Upvotes: 7

awawjerh
awawjerh

Reputation: 214

Clean your browser Cache or try opening a private navigation window.

Upvotes: 3

Related Questions