From 88566e28512bbfecc9b36dc12f7ad57a3fe799b5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 25 May 2017 20:22:57 +0900 Subject: [PATCH] [Client] Fix bug Disable cache --- src/web/app/desktop/tags/home-widgets/rss-reader.tag | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/web/app/desktop/tags/home-widgets/rss-reader.tag b/src/web/app/desktop/tags/home-widgets/rss-reader.tag index 9a2b2fce1..0964fc141 100644 --- a/src/web/app/desktop/tags/home-widgets/rss-reader.tag +++ b/src/web/app/desktop/tags/home-widgets/rss-reader.tag @@ -78,7 +78,14 @@ }); this.fetch = () => { - fetch(`https://api.rss2json.com/v1/api.json?rss_url=${this.url}`).then(res => { + const headers = new Headers(); + headers.append('pragma', 'no-cache'); + headers.append('cache-control', 'no-cache'); + + fetch(`https://api.rss2json.com/v1/api.json?rss_url=${this.url}`, { + method: 'GET', + headers + }).then(res => { res.json().then(feed => { this.update({ initializing: false,