diff options
author | Andrew Dolgov <[email protected]> | 2022-12-19 21:36:50 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-12-19 21:36:50 +0300 |
commit | d373b7b452c6d64b47180940ed88c99c21bd9bc3 (patch) | |
tree | 08024adea61fcee2f646554a349ea90b30a150b4 /js/Feeds.js | |
parent | 20d6aaa9ab976d3e044fbd7ad2b1167260cc213c (diff) |
* bring back cache-busting for feed icons based on timestamp
* DiskCache: use singleton pattern to create less cache object instances
* DiskCache: implement ETag
Diffstat (limited to 'js/Feeds.js')
-rw-r--r-- | js/Feeds.js | 6 |
1 files changed, 3 insertions, 3 deletions
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'); } |