Mobile app version of vmapp.org
Login or Join
Ann8826881

: What happens when overwriting a static file? Say you've got a purely static website. It's popular so people are often visiting your index.html. What happens when you use your ftp client to overwrite

@Ann8826881

Posted in: #Ftp #StaticContent #Webserver

Say you've got a purely static website. It's popular so people are often visiting your index.html. What happens when you use your ftp client to overwrite the file? Will people ever see any odd results? Will all requests simply hang until the writing is done? Or do webservers do anything clever to serve the old file while the new file is being written?

What if it's a script that overwrites index.html? Is that the same as using ftp? Does it depend on the server?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

There's a chance the would get a blank page if they visit while the transfer is in progress. If the transfer hangs or there's a connection problem while uploading the new file.

I've seen cases while uploading a CSS file, refreshing the page no CSS rendered since the file didn't fully upload or I refreshed just as the file was being replaced with the newly uploaded file.

It's nothing to worry about just make sure you have a backup before overwriting the file, your visitors will likely think it's their browser and refresh the page.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme