From 56dcb0e72540f0c5af51a17b41d441ad2f5c2342 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 20 Jun 2012 18:32:48 +0200 Subject: [PATCH] don't read readme html files from cache --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 000835e0..3ff6b9e8 100644 --- a/index.js +++ b/index.js @@ -237,7 +237,7 @@ Ox.load(function() { app.state.loaded = true; }, loadData: function(callback) { - var q = '?' + Ox.random(100000), + var q = '?' + Ox.random(1000000), url = 'https://oxjs.org/downloads/downloads.json' + q; Ox.getJSON('index.json' + q, function(data) { app.data = Ox.extend(app.data, data); @@ -594,7 +594,7 @@ Ox.load(function() { id && $panel.find('.item#' + id).addClass('selected'); Ox.get('readme/' + ( id || 'index/readme' - ) + '.html', function(html) { + ) + '.html?' + Math.random(1000000), function(html) { $text.empty() .append( id ? html