Skip to content

Instantly share code, notes, and snippets.

@asizikov
Created May 2, 2014 14:43
Show Gist options
  • Save asizikov/1fd791c8ffd4696ebcf6 to your computer and use it in GitHub Desktop.
Save asizikov/1fd791c8ffd4696ebcf6 to your computer and use it in GitHub Desktop.
HttpRequestCache
Assuming that clearing the WinInet cache solves the problem, you can delete files programmatically by P/Invoking to the DeleteUrlCacheEntry WinInet API:
public static class NativeMethods
{
[DllImport("WinInet.dll", PreserveSig = true, SetLastError = true)]
public static extern void DeleteUrlCacheEntry(string url);
}
/////////////
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment