Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

WebClient caching support

Aleksey's Avatar

Aleksey

Jul 15, 2011 @ 09:47 PM

Would WebClient caching work in an Appharbor hosted application?

e.g.

WebClient client = new WebClient();
client.CachePolicy = new RequestCachePolicy(RequestCacheLevel.Revalidate);
client.DownloadData("http://site.com/resource");

Would cache the resource if supported by the server and use Temporary Internet Files for storing the cached copy.

Would this work on Appharbor given that disk write access is restricted?

Thanks!

  1. Support Staff 1 Posted by friism on Jul 15, 2011 @ 11:43 PM

    friism's Avatar

    That's a pretty good question. I've done some experiments on AppHarbor and the caching is effective for RequestCacheLevel.CacheIfAvailable, but the cache is not stored where one would expect.

    If you need more details, it might make more sense to post this question on Stackoverflow.

    Michael

  2. friism closed this discussion on Jul 15, 2011 @ 11:43 PM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac