summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-12-19 21:36:50 +0300
committerAndrew Dolgov <[email protected]>2022-12-19 21:36:50 +0300
commitd373b7b452c6d64b47180940ed88c99c21bd9bc3 (patch)
tree08024adea61fcee2f646554a349ea90b30a150b4 /js
parent20d6aaa9ab976d3e044fbd7ad2b1167260cc213c (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')
-rw-r--r--js/Feeds.js6
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');
}