diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-26 20:45:27 -0700 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-04-26 20:45:27 -0700 |
commit | f77192604369c558fdae939a80f5dd32e404b359 (patch) | |
tree | 9738183e2658d741488b479722b72601252ef19a | |
parent | d7b1f3397999e245ab227e9a589d3d70aed1163c (diff) | |
download | DotNetOpenAuth-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.cs | 4 |
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 |