diff options
-rw-r--r-- | lib/main.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/main.js b/lib/main.js index 9e7a413..e14f947 100644 --- a/lib/main.js +++ b/lib/main.js @@ -96,6 +96,11 @@ function initialize(callback) { preferences.set(prefName, JSONURLDefault); } + // Randomize URL to avoid caching + // TODO see https://fedorahosted.org/bugzilla-triage-scripts/ticket/21 + // for more thorough discussion and possible further improvement + urlStr += (urlStr.match(/\?/) == null ? "?" : "&") + (new Date()).getTime(); + Request({ url: urlStr, onComplete: function () { |