summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-05-25 20:22:57 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-05-25 20:22:57 +0900
commit88566e28512bbfecc9b36dc12f7ad57a3fe799b5 (patch)
tree0fca5f1e11f5d4a0b82e5a9037388a1d7dc892bf /src/web
parentv1880 (diff)
downloadmisskey-88566e28512bbfecc9b36dc12f7ad57a3fe799b5.tar.gz
misskey-88566e28512bbfecc9b36dc12f7ad57a3fe799b5.tar.bz2
misskey-88566e28512bbfecc9b36dc12f7ad57a3fe799b5.zip
[Client] Fix bug
Disable cache
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/home-widgets/rss-reader.tag9
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,