You can try using flag when connecting:
INTERNET_FLAG_DONT_CACHE = 0x04000000 Does not add the returned object to the cache. This matches the preferred value, INTERNET_FLAG_NO_CACHE_WRITE.
Or you can take a look at DeleteUrlCacheEntry from WinInet documentation here
I want this to do the trick.
- UPDATE
From this document I saw that there is a better flag to use it, look at:
INTERNET_FLAG_PRAGMA_NOCACHE , - .
- UPDATE
@Pradeep, , :
HKCU\Software\Microsoft\Windows\CurrentVersion\ \DnsCacheEnabled
ServerInfoTimeOut DnsCacheTimeout 0.