Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #547 from akoeplinger/fix-nocache

Changed DateTime.Now to GUID for the noCache parameter
  • Loading branch information...
commit 758b0d4f75bceb3cfd22e4084cf7208d13617636 2 parents b1179eb + fc38dc8
@davidfowl davidfowl authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 SignalR.Client/Transports/HttpBasedTransport.cs
View
5 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)
Please sign in to comment.
Something went wrong with that request. Please try again.