Skip to content

Commit

Permalink
IE cache buster
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdupin committed Nov 25, 2014
1 parent 688d14c commit fd21e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Hook.Client.prototype.request = function(segments, method, data) {

if (typeof(XDomainRequest) !== "undefined") {
// XMLHttpRequest#setRequestHeader isn't implemented on Internet Explorer's XDomainRequest
segments += "?X-App-Id=" + this.app_id + "&X-App-Key=" + this.key;
segments += "?X-App-Id=" + this.app_id + "&X-App-Key=" + this.key + "&r=" + Math.floor(Math.random()*1000);
var auth_token = this.auth.getToken();
if (auth_token) { segments += '&X-Auth-Token=' + auth_token; }
}
Expand Down

0 comments on commit fd21e4e

Please sign in to comment.