CSV file download - how to make sure there is NO temp files on the server?

Hi hi…

This might sound very strange… but on one of my hosting platforms, when i export a csv, that goes into a folder eg… “downloads”. Its created i download the csv and the file gets removed from the folder… it works great on all servers… so all good and well and always get the latest file generated from server connect creating the CSV file…

But this one server…
If i download the file once… and say have 365 records in… and go back to my page and request the CSV again… (because i have inserted more records) it generates it on the server… but its like its the OLD file its reading from the folder on the server.

So the data it queries show the result 100% with the “new” data added…
csv-data

but once i request a new “csv” …it gives me the “old” once…

So basically missing id 2324 in this example… as said … only on this one server…

ok… what i have done to “fix” my problem… i have used a uid infront of the file name… so eveytime it requests to make a csv file… its unique… …

1 Like