summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2009-04-26 20:45:27 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2009-04-26 20:45:27 -0700
commitf77192604369c558fdae939a80f5dd32e404b359 (patch)
tree9738183e2658d741488b479722b72601252ef19a
parentd7b1f3397999e245ab227e9a589d3d70aed1163c (diff)
downloadDotNetOpenAuth-f77192604369c558fdae939a80f5dd32e404b359.zip
DotNetOpenAuth-f77192604369c558fdae939a80f5dd32e404b359.tar.gz
DotNetOpenAuth-f77192604369c558fdae939a80f5dd32e404b359.tar.bz2
HTTP requests made for identifier discovery are no longer cached in debug builds.
-rw-r--r--src/DotNetOpenAuth/Yadis/Yadis.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/DotNetOpenAuth/Yadis/Yadis.cs b/src/DotNetOpenAuth/Yadis/Yadis.cs
index 98bffc9..0caffb6 100644
--- a/src/DotNetOpenAuth/Yadis/Yadis.cs
+++ b/src/DotNetOpenAuth/Yadis/Yadis.cs
@@ -27,7 +27,11 @@ namespace DotNetOpenAuth.Yadis {
/// <summary>
/// Gets or sets the cache that can be used for HTTP requests made during identifier discovery.
/// </summary>
+#if DEBUG
+ internal static readonly RequestCachePolicy IdentifierDiscoveryCachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.BypassCache);
+#else
internal static readonly RequestCachePolicy IdentifierDiscoveryCachePolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.CacheIfAvailable);
+#endif
/// <summary>
/// The maximum number of bytes to read from an HTTP response