I have a piece of software that downloads images into a working directory and then processes them to create a video; afterwards, those files are removed by an independent script.
The problem is that it also writes files into the following directory (the software runs as a system service):
C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5
To make things worse, there doesn't seem to be a limit to how many files are kept there; this causes server issues due to the hard disc shortage.
In an attempt to prevent files from being cached we have tried the following:
Use
Pragma:
andCache-Control:
headers on the server to prevent caching on the client;Use
DeleteUrlCacheEntry()
to remove the cache entry after download has completed; returnsERROR_FILE_NOT_FOUND
;- Use
IBindStatusCallback::GetBindInfo()
and set the passedgrfBINDF
toBINDF_NOWRITECACHE|BINDF_PRAGMA_NO_CACHE|BINDF_GETNEWESTVERSION
.
Unfortunately, the aforementioned approaches don't prevent cache files from still being written into the internet cache.
Is there something I've missed?