From 0a05481ee1f6384ac85dca6caf45208c26649e67 Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Sun, 22 Nov 2015 19:57:07 +0000 Subject: [PATCH] Allow one timestamp per request Closes gh-123 --- github.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github.js b/github.js index 05f44259..bc87af50 100644 --- a/github.js +++ b/github.js @@ -63,7 +63,8 @@ } } - return url + (typeof window !== 'undefined' ? '&' + new Date().getTime() : ''); + return url.replace(/(×tamp=\d+)/, '') + + (typeof window !== 'undefined' ? '×tamp=' + new Date().getTime() : ''); } var xhr = new XMLHttpRequest();