From d373b7b452c6d64b47180940ed88c99c21bd9bc3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 19 Dec 2022 21:36:50 +0300 Subject: * bring back cache-busting for feed icons based on timestamp * DiskCache: use singleton pattern to create less cache object instances * DiskCache: implement ETag --- js/Feeds.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') diff --git a/js/Feeds.js b/js/Feeds.js index b3913b1f0..42641dc74 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -71,7 +71,7 @@ const Feeds = { const kind = elems[l].kind; const ctr = parseInt(elems[l].counter); const error = elems[l].error; - const has_img = elems[l].has_img; + const ts = elems[l].ts; const updated = elems[l].updated; if (id == "global-unread") { @@ -98,9 +98,9 @@ const Feeds = { this.setValue(id, false, 'updated', updated); if (id > 0) { - if (has_img) { + if (ts) { this.setIcon(id, false, - App.getInitParam("icons_url") + '?' + dojo.objectToQuery({op: 'feed_icon', id: id})); + App.getInitParam("icons_url") + '?' + dojo.objectToQuery({op: 'feed_icon', id: id, ts: ts})); } else { this.setIcon(id, false, 'images/blank_icon.gif'); } -- cgit v1.2.3