Downloading zip files by http
Posted: Wed Nov 10, 2021 11:29 am
I had this issue that I thought was Hollywood messing with me.
I made a program where the server first create a folder on my ftp server and then uploads some files, some text files and a zip file.
My client program then use http to download these files. When the text files are updated and reuploaded from the server, I could see that they gets updated on the client.
But for some reason this is not the case for the zip file.
Even if the server updates the zip file, the client would only download the original zip file.
Using a web-browser and a ftp-client I did a few test. If I download the zipfile with the ftp-client I always gets the updated file. But when downloading with the browser it just gets the original zip file.
To verify that it was not the browser cache I tried another computer, but still getting the old file. Even if I delete the file on the ftp server, the file is downloadable.
My solution in my case is to change the download method to ftp.
But I still wonder why this is happening. Is this a common issue or is it something I should adress to my hosting service provider (hostinger)?
I made a program where the server first create a folder on my ftp server and then uploads some files, some text files and a zip file.
My client program then use http to download these files. When the text files are updated and reuploaded from the server, I could see that they gets updated on the client.
But for some reason this is not the case for the zip file.
Even if the server updates the zip file, the client would only download the original zip file.
Using a web-browser and a ftp-client I did a few test. If I download the zipfile with the ftp-client I always gets the updated file. But when downloading with the browser it just gets the original zip file.
To verify that it was not the browser cache I tried another computer, but still getting the old file. Even if I delete the file on the ftp server, the file is downloadable.
My solution in my case is to change the download method to ftp.
But I still wonder why this is happening. Is this a common issue or is it something I should adress to my hosting service provider (hostinger)?