Cache screwed me up
Posted on 2000-02-24
My co-worker wrote a C++ function that uses the CInternetfile class to get a file via FTP from our server to a local directory, say C:\XXX. However, we found out, after installing IE5, the file is cached in the Temporary Internet Files Directory. Therefore, sometimes when I open the file from C:\XXX, the content is the same even if the content on the server has changed. It obviously got the file from the cache.
I tired to delete the file from the cahce, but windows does not allow me to do so sometimes. From Visual Foxpro, I can't delete the file from the cache too. I believe that it is controlled by Windows. so I guess deleting the file is not a possible way...
How can I force it to download from the server, not the cache?