diff options
author | Matěj Cepl <mcepl@redhat.com> | 2010-07-14 16:07:57 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2010-07-14 16:44:25 +0200 |
commit | 0625a434489816efff2494eff77a82e43539ea8f (patch) | |
tree | 1b53ad97547f3a7567707514891b64997df9bbe0 /lib | |
parent | 97123f05a19a1cbec41ef4b7b72adf0c3f681113 (diff) | |
download | bugzilla-triage-0625a434489816efff2494eff77a82e43539ea8f.tar.gz |
Overcome cache so that JSON configuration file is not stale (fixes #21).
Diffstat (limited to 'lib')
-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 () { |