From fd21e4e7185fc0d89da22a592dbb6a23b5d2ff8f Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Tue, 25 Nov 2014 15:45:53 -0200 Subject: [PATCH] IE cache buster --- src/core/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/client.js b/src/core/client.js index a5dc200..39a5bf7 100644 --- a/src/core/client.js +++ b/src/core/client.js @@ -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; } }