Small wrapper on HttpClient to cache http response on disc
License
—
Deps
0
Install Size
—
Vulns
✓ 0
Published
Jun 4, 2025
$ dotnet add package MolinRE.CacheClientvar client = new HttpCacheClient(@"C:\temp\site.com", cacheLifeMinutes: 24 * 60);
// First call sends actual request and stores response on disc
var response = client.GetAsync("site.com/page.html");
// Second call first checks if page available on disc
var responseFromCache = client.GetAsync("site.com/page.html");