Permalink
Browse files

Merge pull request #547 from akoeplinger/fix-nocache

Changed DateTime.Now to GUID for the noCache parameter
  • Loading branch information...
davidfowl committed Jul 21, 2012
2 parents b1179eb + fc38dc8 commit 758b0d4f75bceb3cfd22e4084cf7208d13617636
Showing with 2 additions and 3 deletions.
  1. +2 −3 SignalR.Client/Transports/HttpBasedTransport.cs
@@ -39,7 +39,7 @@ internal static Task<NegotiationResponse> GetNegotiationResponse(IHttpClient htt
#if SILVERLIGHT || WINDOWS_PHONE
string negotiateUrl = connection.Url + "negotiate?" + GetNoCacheUrlParam();
#else
- string negotiateUrl = connection.Url + "negotiate";
+ string negotiateUrl = connection.Url + "negotiate";
#endif
@@ -129,8 +129,7 @@ protected string GetReceiveQueryString(IConnection connection, string data)
private static string GetNoCacheUrlParam()
{
- //Updated to Ticks according to Samual Jack's comment
- return "noCache=" + DateTime.Now.Ticks.ToString();
+ return "noCache=" + Guid.NewGuid().ToString();
}
protected virtual Action<IRequest> PrepareRequest(IConnection connection)

0 comments on commit 758b0d4

Please sign in to comment.