diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 20:22:57 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-05-25 20:22:57 +0900 |
| commit | 88566e28512bbfecc9b36dc12f7ad57a3fe799b5 (patch) | |
| tree | 0fca5f1e11f5d4a0b82e5a9037388a1d7dc892bf /src | |
| parent | v1880 (diff) | |
| download | misskey-88566e28512bbfecc9b36dc12f7ad57a3fe799b5.tar.gz misskey-88566e28512bbfecc9b36dc12f7ad57a3fe799b5.tar.bz2 misskey-88566e28512bbfecc9b36dc12f7ad57a3fe799b5.zip | |
[Client] Fix bug
Disable cache
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/desktop/tags/home-widgets/rss-reader.tag | 9 |
1 files changed, 8 insertions, 1 deletions
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 9a2b2fce1f..0964fc1415 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, |