[Client] Fix bug

Disable cache
This commit is contained in:
syuilo 2017-05-25 20:22:57 +09:00
parent 11276a100a
commit fb51d8b43a

View file

@ -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,